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

Unified Diff: base/memory/ref_counted_delete_on_message_loop.h

Issue 2375663002: Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). (Closed)
Patch Set: self-review 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
Index: base/memory/ref_counted_delete_on_message_loop.h
diff --git a/base/memory/ref_counted_delete_on_message_loop.h b/base/memory/ref_counted_delete_on_message_loop.h
index de194e847918549cfda873253d896edf92a80da1..41611274ceab6931bf8f9f0f9c389fd729ab5c55 100644
--- a/base/memory/ref_counted_delete_on_message_loop.h
+++ b/base/memory/ref_counted_delete_on_message_loop.h
@@ -36,7 +36,7 @@ class RefCountedDeleteOnMessageLoop : public subtle::RefCountedThreadSafeBase {
// This constructor will accept a MessageL00pProxy object, but new code should
gab 2016/09/28 17:19:03 MessageLoopProxy no longer exists (sadly this was
fdoray 2016/09/28 18:54:50 Done.
// prefer a SingleThreadTaskRunner. A SingleThreadTaskRunner for the
// MessageLoop on the current thread can be acquired by calling
gab 2016/09/28 17:19:03 s/for the MessageLoop on the current thread/for th
fdoray 2016/09/28 18:54:50 Done.
- // MessageLoop::current()->task_runner().
+ // ThreadTaskRunnerHandle::Get().
RefCountedDeleteOnMessageLoop(
scoped_refptr<SingleThreadTaskRunner> task_runner)
: task_runner_(std::move(task_runner)) {

Powered by Google App Engine
This is Rietveld 408576698