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

Unified Diff: content/browser/browser_context.cc

Issue 2407353002: Remove MessageLoop::current() from browser_context.cc. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 5b7ba414fede1cfde3b029ed98f7b60c0ca2b418..a7c63e5152f874ef40c5423cf0d9e89e706822e5 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -431,7 +431,7 @@ void BrowserContext::Initialize(
ServiceManagerConnection* service_manager_connection =
ServiceManagerConnection::GetForProcess();
- if (service_manager_connection && base::MessageLoop::current()) {
+ if (service_manager_connection && base::ThreadTaskRunnerHandle::IsSet()) {
// NOTE: Many unit tests create a TestBrowserContext without initializing
// Mojo or the global service manager connection.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698