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

Unified Diff: chrome/browser/io_thread.cc

Issue 7282054: Remove more unnecessary ChromeURLRequestContext members. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright and chormeos tests. Created 9 years, 5 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: 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_));

Powered by Google App Engine
This is Rietveld 408576698