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

Unified Diff: base/task_runner.h

Issue 2657603004: Clear PostTaskAndReply task on the destination thread (3) (Closed)
Patch Set: rebase Created 3 years, 11 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
Index: base/task_runner.h
diff --git a/base/task_runner.h b/base/task_runner.h
index 9593835eebbdfa51f43e1d236f387f3ee1ac7940..1fae92df17ad1d957d2c941532d28fe41a1bf401 100644
--- a/base/task_runner.h
+++ b/base/task_runner.h
@@ -123,8 +123,8 @@ class BASE_EXPORT TaskRunner
// and the reply will cancel itself safely because it is bound to a
// WeakPtr<>.
bool PostTaskAndReply(const tracked_objects::Location& from_here,
- const Closure& task,
- const Closure& reply);
+ Closure task,
+ Closure reply);
protected:
friend struct TaskRunnerTraits;

Powered by Google App Engine
This is Rietveld 408576698