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

Unified Diff: content/browser/browser_thread_impl.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: fix compile Created 3 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
Index: content/browser/browser_thread_impl.cc
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 8df7974b7ee91922119b4d1ab7292c8f0af0c68a..0d86c7d2cfdb0c9bb9df1903978f0e67d1b906f0 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();
}

Powered by Google App Engine
This is Rietveld 408576698