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

Unified Diff: base/threading/worker_pool.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/threading/worker_pool.h
diff --git a/base/threading/worker_pool.h b/base/threading/worker_pool.h
index 1f1b8186e050bf0a5a7d848f9b7286792c7348c5..9cee8f004d90c1d4eab1bbc6ff518af8dd2a1817 100644
--- a/base/threading/worker_pool.h
+++ b/base/threading/worker_pool.h
@@ -38,8 +38,8 @@ class BASE_EXPORT WorkerPool {
// for |task| is a worker thread and you can specify |task_is_slow| just
// like you can for PostTask above.
static bool PostTaskAndReply(const tracked_objects::Location& from_here,
- const Closure& task,
- const Closure& reply,
+ Closure task,
+ Closure reply,
bool task_is_slow);
// Return true if the current thread is one that this WorkerPool runs tasks

Powered by Google App Engine
This is Rietveld 408576698