Index: third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
diff --git a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
index fd1ffdfd675a3d8d28cff739be990991ee51cfa4..c089abf2fa24373bfe8687a881a32332fc835eaf 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc |
@@ -68,19 +68,20 @@ bool LazySchedulerMessageLoopDelegateForTests::HasMessageLoop() const { |
bool LazySchedulerMessageLoopDelegateForTests::PostDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::Closure task, |
base::TimeDelta delay) { |
EnsureMessageLoop(); |
- return original_task_runner_->PostDelayedTask(from_here, task, delay); |
+ return original_task_runner_->PostDelayedTask(from_here, std::move(task), |
+ delay); |
} |
bool LazySchedulerMessageLoopDelegateForTests::PostNonNestableDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::Closure task, |
base::TimeDelta delay) { |
EnsureMessageLoop(); |
- return original_task_runner_->PostNonNestableDelayedTask(from_here, task, |
- delay); |
+ return original_task_runner_->PostNonNestableDelayedTask( |
+ from_here, std::move(task), delay); |
} |
bool LazySchedulerMessageLoopDelegateForTests::RunsTasksOnCurrentThread() |