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

Unified Diff: ios/web/web_thread_impl.cc

Issue 2473823002: Remove BrowserThread::UnsafeGetMessageLoopForThread() (Closed)
Patch Set: rebase again? Created 4 years, 1 month 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 | « ios/web/public/web_thread.h ('k') | ios/web/webui/url_data_manager_ios_backend.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_thread_impl.cc
diff --git a/ios/web/web_thread_impl.cc b/ios/web/web_thread_impl.cc
index 1cfa9a7d3b7f34eb0a82ba549b1aaf67ef7913c2..d835251083ce8fd0d0ca5923f4945c96c3480f8d 100644
--- a/ios/web/web_thread_impl.cc
+++ b/ios/web/web_thread_impl.cc
@@ -481,19 +481,6 @@ scoped_refptr<base::SingleThreadTaskRunner> WebThread::GetTaskRunnerForThread(
}
// static
-base::MessageLoop* WebThread::UnsafeGetMessageLoopForThread(ID identifier) {
- if (g_globals == nullptr)
- return nullptr;
-
- WebThreadGlobals& globals = g_globals.Get();
- base::AutoLock lock(globals.lock);
- base::Thread* thread = globals.threads[identifier];
- DCHECK(thread);
- base::MessageLoop* loop = thread->message_loop();
- return loop;
-}
-
-// static
void WebThread::SetDelegate(ID identifier, WebThreadDelegate* delegate) {
using base::subtle::AtomicWord;
WebThreadGlobals& globals = g_globals.Get();
« no previous file with comments | « ios/web/public/web_thread.h ('k') | ios/web/webui/url_data_manager_ios_backend.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698