Index: third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc |
diff --git a/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc b/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc |
index 714aca0981ecd9bdda89b304c34ad6c6dc8e5aa3..8425c34a1a4104dc4cd8fd7a8850f5c37b61198c 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc |
@@ -40,17 +40,18 @@ void SchedulerTqmDelegateImpl::RestoreDefaultTaskRunner() { |
bool SchedulerTqmDelegateImpl::PostDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::Closure task, |
base::TimeDelta delay) { |
- return message_loop_task_runner_->PostDelayedTask(from_here, task, delay); |
+ return message_loop_task_runner_->PostDelayedTask(from_here, std::move(task), |
+ delay); |
} |
bool SchedulerTqmDelegateImpl::PostNonNestableDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::Closure task, |
base::TimeDelta delay) { |
- return message_loop_task_runner_->PostNonNestableDelayedTask(from_here, task, |
- delay); |
+ return message_loop_task_runner_->PostNonNestableDelayedTask( |
+ from_here, std::move(task), delay); |
} |
bool SchedulerTqmDelegateImpl::RunsTasksOnCurrentThread() const { |