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

Unified Diff: content/browser/browser_thread_impl.cc

Issue 8769013: Remove BrowserThread::UnsafeGetBrowserThread, add UnsafeGetMessageLoopForThread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to lkgr (pure merge). Created 9 years 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 | « chrome/test/base/testing_browser_process.cc ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread_impl.cc
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 9cea8f45a24cc542b47ee2acbe68d052e35bb50f..f37c5b415f9798df2bf3477bf46184b6e72e7d3d 100644
--- a/content/browser/browser_thread_impl.cc
+++ b/content/browser/browser_thread_impl.cc
@@ -395,17 +395,16 @@ BrowserThread::GetMessageLoopProxyForThread(
return proxy;
}
-base::Thread* BrowserThread::UnsafeGetBrowserThread(ID identifier) {
+// static
+MessageLoop* BrowserThread::UnsafeGetMessageLoopForThread(ID identifier) {
base::AutoLock lock(g_lock.Get());
base::Thread* thread = g_browser_threads[identifier];
DCHECK(thread);
- return thread;
-}
-
-MessageLoop* BrowserThread::UnsafeGetMessageLoop(ID identifier) {
- return UnsafeGetBrowserThread(identifier)->message_loop();
+ MessageLoop* loop = thread->message_loop();
+ return loop;
}
+// static
void BrowserThread::SetDelegate(ID identifier,
BrowserThreadDelegate* delegate) {
using base::subtle::AtomicWord;
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698