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

Unified Diff: content/browser/browser_thread_impl.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() Created 3 years, 7 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
Index: content/browser/browser_thread_impl.cc
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 2cd2efffe6b70954551dabfae52d4055f269f6f3..b1b96b7569fed2ab10c0e329bff7f62160c7b645 100644
--- a/content/browser/browser_thread_impl.cc
+++ b/content/browser/browser_thread_impl.cc
@@ -218,7 +218,7 @@ void BrowserThreadImpl::Init() {
identifier_ == BrowserThread::PROCESS_LAUNCHER ||
identifier_ == BrowserThread::CACHE) {
// Nesting and task observers are not allowed on redirected threads.
- message_loop()->DisallowNesting();
+ base::RunLoop::DisallowNestingOnCurrentThread();
message_loop()->DisallowTaskObservers();
}
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698