From 59201188169f51645159ebb2cf0cd52619915c16 Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Sun, 24 Feb 2019 22:49:16 -0700 Subject: Add chromium-72 patches from debian project Collect a number of patches, specifically, `fixes` and `gcc6` patches for compiling chromium-72. [0]: https://salsa.debian.org/chromium-team/chromium/tree/master/debian/patches Signed-off-by: Kenny Ballou --- .../chromium-72.0.3626.96/use-after-move.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 patches/www-client/chromium-72.0.3626.96/use-after-move.patch (limited to 'patches/www-client/chromium-72.0.3626.96/use-after-move.patch') diff --git a/patches/www-client/chromium-72.0.3626.96/use-after-move.patch b/patches/www-client/chromium-72.0.3626.96/use-after-move.patch new file mode 100644 index 0000000..a72a4f2 --- /dev/null +++ b/patches/www-client/chromium-72.0.3626.96/use-after-move.patch @@ -0,0 +1,29 @@ +description: gcc 6 does not support using a unique_ptr after its been moved +author: Michael Gilbert + +--- a/services/resource_coordinator/coordination_unit/coordination_unit_base.cc ++++ b/services/resource_coordinator/coordination_unit/coordination_unit_base.cc +@@ -81,7 +81,8 @@ void CoordinationUnitBase::SetProperty(m + // static + CoordinationUnitBase* CoordinationUnitBase::PassOwnershipToGraph( + std::unique_ptr new_cu) { +- return new_cu->graph()->AddNewCoordinationUnit(std::move(new_cu)); ++ CoordinationUnitGraph* graph = new_cu->graph(); ++ return graph->AddNewCoordinationUnit(std::move(new_cu)); + } + + } // namespace resource_coordinator + +--- a/base/task/sequence_manager/task_queue.cc ++++ b/base/task/sequence_manager/task_queue.cc +@@ -50,7 +50,9 @@ TaskQueue::~TaskQueue() { + // If we've not been unregistered then this must occur on the main thread. + DCHECK_CALLED_ON_VALID_THREAD(associated_thread_->thread_checker); + impl_->SetOnNextWakeUpChangedCallback(RepeatingCallback()); +- impl_->sequence_manager()->ShutdownTaskQueueGracefully(TakeTaskQueueImpl()); ++ internal::SequenceManagerImpl* sequence_manager = impl_->sequence_manager(); ++ if (sequence_manager) ++ sequence_manager->ShutdownTaskQueueGracefully(TakeTaskQueueImpl()); + } + + TaskQueue::TaskTiming::TaskTiming(bool has_wall_time, bool has_thread_time) -- cgit v1.2.1