Index: base/task_scheduler/task_scheduler_impl.cc |
diff --git a/base/task_scheduler/task_scheduler_impl.cc b/base/task_scheduler/task_scheduler_impl.cc |
index e5c8abf716306f8602b0cde8786e10dc292f1739..f40f5872c1e11da64047e0e972c7f9bba00a0670 100644 |
--- a/base/task_scheduler/task_scheduler_impl.cc |
+++ b/base/task_scheduler/task_scheduler_impl.cc |
@@ -44,11 +44,11 @@ TaskSchedulerImpl::~TaskSchedulerImpl() { |
void TaskSchedulerImpl::PostDelayedTaskWithTraits( |
const tracked_objects::Location& from_here, |
const TaskTraits& traits, |
- const Closure& task, |
+ Closure task, |
TimeDelta delay) { |
// Post |task| as part of a one-off single-task Sequence. |
GetWorkerPoolForTraits(traits)->PostTaskWithSequence( |
- MakeUnique<Task>(from_here, task, traits, delay), |
+ MakeUnique<Task>(from_here, std::move(task), traits, delay), |
make_scoped_refptr(new Sequence)); |
} |