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

Unified Diff: base/task_scheduler/task.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/sequence.cc ('k') | base/task_scheduler/task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task.h
diff --git a/base/task_scheduler/task.h b/base/task_scheduler/task.h
index 2b53c690fddffc752ce63ec98b900a0b34f06674..6e889511895bfc2276765bd7f6709b8471f0ab08 100644
--- a/base/task_scheduler/task.h
+++ b/base/task_scheduler/task.h
@@ -26,7 +26,7 @@ struct BASE_EXPORT Task : public PendingTask {
// to run. |traits| is metadata about the task. |delay| is a delay that must
// expire before the Task runs.
Task(const tracked_objects::Location& posted_from,
- const Closure& task,
+ OnceClosure task,
const TaskTraits& traits,
const TimeDelta& delay);
~Task();
« no previous file with comments | « base/task_scheduler/sequence.cc ('k') | base/task_scheduler/task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698