Index: base/threading/worker_pool.cc |
diff --git a/base/threading/worker_pool.cc b/base/threading/worker_pool.cc |
index 6e07b6ef37e3d1b1c47ace828c6384a10061ddf0..14b087e74d55c77cec49cb8e08aba428035e30f0 100644 |
--- a/base/threading/worker_pool.cc |
+++ b/base/threading/worker_pool.cc |
@@ -104,8 +104,8 @@ base::LazyInstance<TaskRunnerHolder>::Leaky |
} // namespace |
bool WorkerPool::PostTaskAndReply(const tracked_objects::Location& from_here, |
- const Closure& task, |
- const Closure& reply, |
+ Closure task, |
+ Closure reply, |
bool task_is_slow) { |
// Do not report PostTaskAndReplyRelay leaks in tests. There's nothing we can |
// do about them because WorkerPool doesn't have a flushing API. |
@@ -113,8 +113,8 @@ bool WorkerPool::PostTaskAndReply(const tracked_objects::Location& from_here, |
// http://crbug.com/290897 |
// Note: this annotation does not cover tasks posted through a TaskRunner. |
ANNOTATE_SCOPED_MEMORY_LEAK; |
- return PostTaskAndReplyWorkerPool(task_is_slow).PostTaskAndReply( |
- from_here, task, reply); |
+ return PostTaskAndReplyWorkerPool(task_is_slow) |
+ .PostTaskAndReply(from_here, std::move(task), std::move(reply)); |
} |
// static |