Index: base/task_scheduler/scheduler_worker_pool_impl.cc |
diff --git a/base/task_scheduler/scheduler_worker_pool_impl.cc b/base/task_scheduler/scheduler_worker_pool_impl.cc |
index 5fb11942885571e9448d39ba55c4400ebd1e4695..cc081010d86277d3969c9204777fb683409b99cd 100644 |
--- a/base/task_scheduler/scheduler_worker_pool_impl.cc |
+++ b/base/task_scheduler/scheduler_worker_pool_impl.cc |
@@ -58,7 +58,7 @@ class SchedulerParallelTaskRunner : public TaskRunner { |
// TaskRunner: |
bool PostDelayedTask(const tracked_objects::Location& from_here, |
- Closure closure, |
+ OnceClosure closure, |
TimeDelta delay) override { |
// Post the task as part of a one-off single-task Sequence. |
return worker_pool_->PostTaskWithSequence( |
@@ -93,7 +93,7 @@ class SchedulerSequencedTaskRunner : public SequencedTaskRunner { |
// SequencedTaskRunner: |
bool PostDelayedTask(const tracked_objects::Location& from_here, |
- Closure closure, |
+ OnceClosure closure, |
TimeDelta delay) override { |
std::unique_ptr<Task> task( |
new Task(from_here, std::move(closure), traits_, delay)); |
@@ -104,7 +104,7 @@ class SchedulerSequencedTaskRunner : public SequencedTaskRunner { |
} |
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
- Closure closure, |
+ OnceClosure closure, |
base::TimeDelta delay) override { |
// Tasks are never nested within the task scheduler. |
return PostDelayedTask(from_here, std::move(closure), delay); |