Index: base/threading/worker_pool_win.cc |
diff --git a/base/threading/worker_pool_win.cc b/base/threading/worker_pool_win.cc |
index 05743ae15a026ccd6fffb974b9a24c1a37d75363..ab64f7160f4deb61e9d013b28e6cfb8c3f336203 100644 |
--- a/base/threading/worker_pool_win.cc |
+++ b/base/threading/worker_pool_win.cc |
@@ -4,6 +4,8 @@ |
#include "base/threading/worker_pool.h" |
+#include <utility> |
+ |
#include "base/bind.h" |
#include "base/callback.h" |
#include "base/logging.h" |
@@ -60,8 +62,9 @@ bool PostTaskInternal(PendingTask* pending_task, bool task_is_slow) { |
// static |
bool WorkerPool::PostTask(const tracked_objects::Location& from_here, |
- const base::Closure& task, bool task_is_slow) { |
- PendingTask* pending_task = new PendingTask(from_here, task); |
+ base::Closure task, |
+ bool task_is_slow) { |
+ PendingTask* pending_task = new PendingTask(from_here, std::move(task)); |
return PostTaskInternal(pending_task, task_is_slow); |
} |