Chromium Code Reviews| Index: base/threading/worker_pool.cc |
| diff --git a/base/threading/worker_pool.cc b/base/threading/worker_pool.cc |
| index 96a391480831144730e774af305739dd81449053..b930b68cb892e7544585014572f0f9be39d17beb 100644 |
| --- a/base/threading/worker_pool.cc |
| +++ b/base/threading/worker_pool.cc |
| @@ -100,8 +100,8 @@ struct TaskRunnerHolder { |
| } // 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. |
| @@ -109,8 +109,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)); |
|
gab
2017/02/07 15:46:08
#include <utility>
tzik
2017/02/08 01:39:32
Done.
|
| } |
| // static |