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

Unified Diff: content/public/browser/browser_thread.h

Issue 10291011: Remove BrowserThread-specific implementation of MessageLoopProxy. (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 | « content/browser/browser_thread_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_thread.h
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h
index 0ac582b7c00221da876dd8729c2a6edf23032c61..32f9427b826a644527be01c7c889d59841393f32 100644
--- a/content/public/browser/browser_thread.h
+++ b/content/public/browser/browser_thread.h
@@ -151,8 +151,11 @@ class CONTENT_EXPORT BrowserThread {
static bool DeleteSoon(ID identifier,
const tracked_objects::Location& from_here,
const T* object) {
- return GetMessageLoopProxyForThread(identifier)->DeleteSoon(
- from_here, object);
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy =
+ GetMessageLoopProxyForThread(identifier);
+ if (!message_loop_proxy)
+ return false;
+ return message_loop_proxy->DeleteSoon(from_here, object);
}
template <class T>
« no previous file with comments | « content/browser/browser_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698