| 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.
|
|
|
|
|