Index: chrome/browser/io_thread.cc |
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc |
index cc7872f5efc962fa7e2d6533fe823dad312db444..a6f541a1d45511a020f1f8c03eea9dac8ecfdeec 100644 |
--- a/chrome/browser/io_thread.cc |
+++ b/chrome/browser/io_thread.cc |
@@ -59,6 +59,7 @@ |
#include "content/public/common/content_features.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/common/user_agent.h" |
+#include "net/base/default_trusted_spdy_proxy_provider.h" |
#include "net/base/external_estimate_provider.h" |
#include "net/base/host_mapping_rules.h" |
#include "net/base/net_util.h" |
@@ -963,10 +964,18 @@ void IOThread::ConfigureSpdyGlobals( |
base::StringPiece spdy_trial_group, |
const VariationParameters& spdy_trial_params, |
IOThread::Globals* globals) { |
+ // Initialize trusted SPDY proxy based on command line switch. |
+ std::string trusted_spdy_proxy; |
if (command_line.HasSwitch(switches::kTrustedSpdyProxy)) { |
- globals->trusted_spdy_proxy.set( |
- command_line.GetSwitchValueASCII(switches::kTrustedSpdyProxy)); |
+ trusted_spdy_proxy = |
+ command_line.GetSwitchValueASCII(switches::kTrustedSpdyProxy); |
+ // Configure DefaultTrustedSpdyProxyGetter to return the trusted SPDY proxy |
+ // set on command line. |
bengr
2016/01/12 21:43:03
on the
tbansal1
2016/01/12 23:43:49
Done.
|
+ globals->trusted_spdy_proxy_provider.reset( |
+ new net::DefaultTrustedSpdyProxyProvider(net::ProxyServer::FromURI( |
+ trusted_spdy_proxy, net::ProxyServer::SCHEME_HTTP))); |
} |
+ |
if (command_line.HasSwitch(switches::kIgnoreUrlFetcherCertRequests)) |
net::URLFetcher::SetIgnoreCertificateRequests(true); |
@@ -1132,7 +1141,6 @@ void IOThread::InitializeNetworkSessionParamsFromGlobals( |
globals.spdy_default_protocol.CopyToIfSet( |
¶ms->spdy_default_protocol); |
params->next_protos = globals.next_protos; |
- globals.trusted_spdy_proxy.CopyToIfSet(¶ms->trusted_spdy_proxy); |
params->forced_spdy_exclusions = globals.forced_spdy_exclusions; |
globals.use_alternative_services.CopyToIfSet( |
¶ms->use_alternative_services); |