Index: base/task_scheduler/task_scheduler.h |
diff --git a/base/task_scheduler/task_scheduler.h b/base/task_scheduler/task_scheduler.h |
index 4000c7ab217d1aed89e617513cc78d6bd3488882..864ba7d0bac568a563060c1144dddf010b7ec551 100644 |
--- a/base/task_scheduler/task_scheduler.h |
+++ b/base/task_scheduler/task_scheduler.h |
@@ -40,7 +40,7 @@ class BASE_EXPORT TaskScheduler { |
// For one off tasks that don't require a TaskRunner. |
virtual void PostTaskWithTraits(const tracked_objects::Location& from_here, |
const TaskTraits& traits, |
- const Closure& task) = 0; |
+ OnceClosure task) = 0; |
// Returns a TaskRunner whose PostTask invocations will result in scheduling |
// Tasks with |traits| which will be executed according to |execution_mode|. |