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

Unified Diff: base/debug/task_annotator.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/critical_closure.h ('k') | base/debug/task_annotator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/task_annotator.h
diff --git a/base/debug/task_annotator.h b/base/debug/task_annotator.h
index 2687c5c930ef0fbdfaf6d9c59bb1ffdd3af58d09..8b42acc8be38815f5f90904b7525f9827ee1b40a 100644
--- a/base/debug/task_annotator.h
+++ b/base/debug/task_annotator.h
@@ -27,8 +27,8 @@ class BASE_EXPORT TaskAnnotator {
const PendingTask& pending_task);
// Run a previously queued task. |queue_function| should match what was
- // passed into |DidQueueTask| for this task.
- void RunTask(const char* queue_function, const PendingTask& pending_task);
+ // passed into |DidQueueTask| for this task. This resets |pending_task.task|.
+ void RunTask(const char* queue_function, PendingTask* pending_task);
private:
// Creates a process-wide unique ID to represent this task in trace events.
« no previous file with comments | « base/critical_closure.h ('k') | base/debug/task_annotator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698