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

Unified Diff: content/child/worker_thread_registry.h

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase without dcheck_in_ref_count Created 3 years, 9 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: content/child/worker_thread_registry.h
diff --git a/content/child/worker_thread_registry.h b/content/child/worker_thread_registry.h
index 3e8f994da6733708b9d83fc6f45ffff5aa6d8f4b..a1b08b59919332466ca9d5ae75ddcf9406c1497e 100644
--- a/content/child/worker_thread_registry.h
+++ b/content/child/worker_thread_registry.h
@@ -24,7 +24,7 @@ class CONTENT_EXPORT WorkerThreadRegistry {
public:
WorkerThreadRegistry();
- int PostTaskToAllThreads(base::Closure task);
+ int PostTaskToAllThreads(base::OnceClosure task);
static WorkerThreadRegistry* Instance();
void DidStartCurrentWorkerThread();
@@ -39,7 +39,7 @@ class CONTENT_EXPORT WorkerThreadRegistry {
friend class WorkerThread;
friend class WorkerThreadRegistryTest;
- bool PostTask(int id, base::Closure task);
+ bool PostTask(int id, base::OnceClosure task);
using IDToTaskRunnerMap = std::map<base::PlatformThreadId, base::TaskRunner*>;

Powered by Google App Engine
This is Rietveld 408576698