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

Unified Diff: base/threading/thread.h

Issue 10375014: Return NULL from base::Thread::message_loop_proxy() when thread is not started. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | 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 be8cc8f97a503a7a659ae862dfe9e53bc904a280..aa7d21181766e2dc2952278d0ecc313051ec80dd 100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -117,9 +117,8 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
// non-NULL after a successful call to Start. After Stop has been called,
// this will return NULL. Callers can hold on to this even after the thread
// is gone.
- // TODO(sanjeevr): Look into merging MessageLoop and MessageLoopProxy.
scoped_refptr<MessageLoopProxy> message_loop_proxy() const {
- return message_loop_->message_loop_proxy();
+ return message_loop_ ? message_loop_->message_loop_proxy() : NULL;
}
// Returns the name of this thread (for display in debugger too).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698