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

Unified Diff: base/threading/thread.h

Issue 7583053: Add MessageLoopProxy::current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No need for MessageLoopProxy destruction observer. Created 9 years, 4 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 | « base/observer_list_threadsafe.h ('k') | base/threading/thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread.h
diff --git a/base/threading/thread.h b/base/threading/thread.h
index 58a4cc27b617935d5fd80a3eaf8b83d2f21ff034..d7451ec58ab9238db1b434c4944523a0180e2506 100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -113,7 +113,7 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
// is gone.
// TODO(sanjeevr): Look into merging MessageLoop and MessageLoopProxy.
scoped_refptr<MessageLoopProxy> message_loop_proxy() const {
- return message_loop_proxy_;
+ return message_loop_->message_loop_proxy();
}
// Set the name of this thread (for display in debugger too).
@@ -175,10 +175,6 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
// by the created thread.
MessageLoop* message_loop_;
- // A MessageLoopProxy implementation that targets this thread. This can
- // outlive the thread.
- scoped_refptr<MessageLoopProxy> message_loop_proxy_;
-
// Our thread's ID.
PlatformThreadId thread_id_;
« no previous file with comments | « base/observer_list_threadsafe.h ('k') | base/threading/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698