Index: base/threading/worker_pool.h |
diff --git a/base/threading/worker_pool.h b/base/threading/worker_pool.h |
index a52a41428b31ce244930ddcb688bf2eb51f032cd..97d43bbb732267c576609db36461ea86742a98fe 100644 |
--- a/base/threading/worker_pool.h |
+++ b/base/threading/worker_pool.h |
@@ -34,14 +34,15 @@ class BASE_EXPORT WorkerPool { |
// false if |task| could not be posted to a worker thread. Regardless of |
// return value, ownership of |task| is transferred to the worker pool. |
static bool PostTask(const tracked_objects::Location& from_here, |
- const base::Closure& task, bool task_is_slow); |
+ OnceClosure task, |
+ bool task_is_slow); |
// Just like TaskRunner::PostTaskAndReply, except the destination |
// for |task| is a worker thread and you can specify |task_is_slow| just |
// like you can for PostTask above. |
static bool PostTaskAndReply(const tracked_objects::Location& from_here, |
- const Closure& task, |
- const Closure& reply, |
+ OnceClosure task, |
+ OnceClosure reply, |
bool task_is_slow); |
// Return true if the current thread is one that this WorkerPool runs tasks |