| Index: chrome/browser/io_thread.cc
|
| diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
|
| index faa9054d69816780160f7d0bf5c557f0ea33e9ea..1de212609c7aab08736e8bf392fa2c6dc96e0b85 100644
|
| --- a/chrome/browser/io_thread.cc
|
| +++ b/chrome/browser/io_thread.cc
|
| @@ -671,6 +671,9 @@ net::SSLConfigService* IOThread::GetSSLConfigService() {
|
| void IOThread::InitSystemRequestContext() {
|
| if (system_url_request_context_getter_)
|
| return;
|
| + // If we're in unit_tests, IOThread may not be run.
|
| + if (!message_loop())
|
| + return;
|
| system_proxy_config_service_.reset(
|
| ProxyServiceFactory::CreateProxyConfigService(
|
| pref_proxy_config_tracker_));
|
|
|