Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2744)

Unified Diff: base/task_scheduler/task_scheduler.h

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/task_scheduler/task.cc ('k') | base/task_scheduler/task_scheduler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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|.
« no previous file with comments | « base/task_scheduler/task.cc ('k') | base/task_scheduler/task_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698