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

Unified Diff: base/memory/ref_counted_delete_on_message_loop.h

Issue 2375663002: Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). (Closed)
Patch Set: rebase 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 | « ash/shelf/shelf_view_unittest.cc ('k') | base/message_loop/message_loop_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..eac1add50fe556f3e17d16810ebaec70aab83701 100644
--- a/base/memory/ref_counted_delete_on_message_loop.h
+++ b/base/memory/ref_counted_delete_on_message_loop.h
@@ -33,10 +33,8 @@ namespace base {
template <class T>
class RefCountedDeleteOnMessageLoop : public subtle::RefCountedThreadSafeBase {
public:
- // This constructor will accept a MessageL00pProxy object, but new code should
- // prefer a SingleThreadTaskRunner. A SingleThreadTaskRunner for the
- // MessageLoop on the current thread can be acquired by calling
- // MessageLoop::current()->task_runner().
+ // A SingleThreadTaskRunner for the current thread can be acquired by calling
+ // ThreadTaskRunnerHandle::Get().
RefCountedDeleteOnMessageLoop(
scoped_refptr<SingleThreadTaskRunner> task_runner)
: task_runner_(std::move(task_runner)) {
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | base/message_loop/message_loop_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698