Index: content/renderer/categorized_worker_pool.h |
diff --git a/content/renderer/categorized_worker_pool.h b/content/renderer/categorized_worker_pool.h |
index 2f75f2183f24d0c145e55697f53c86470f371837..09a48261ce774449cf9e0f0696b7e3d746190955 100644 |
--- a/content/renderer/categorized_worker_pool.h |
+++ b/content/renderer/categorized_worker_pool.h |
@@ -36,7 +36,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner, |
// Overridden from base::TaskRunner: |
bool PostDelayedTask(const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::OnceClosure task, |
base::TimeDelta delay) override; |
bool RunsTasksOnCurrentThread() const override; |
@@ -81,7 +81,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner, |
// |task_graph_runner_|. |
class ClosureTask : public cc::Task { |
public: |
- explicit ClosureTask(const base::Closure& closure); |
+ explicit ClosureTask(base::OnceClosure closure); |
// Overridden from cc::Task: |
void RunOnWorkerThread() override; |
@@ -90,7 +90,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner, |
~ClosureTask() override; |
private: |
- base::Closure closure_; |
+ base::OnceClosure closure_; |
DISALLOW_COPY_AND_ASSIGN(ClosureTask); |
}; |