Index: content/shell/shell_url_request_context_getter.cc |
diff --git a/content/shell/shell_url_request_context_getter.cc b/content/shell/shell_url_request_context_getter.cc |
index eabc7621a23d35ceb93a47cf6f6697557a4eb860..7e2719df0a2c0a5e510166a6f1e1c2355444c880 100644 |
--- a/content/shell/shell_url_request_context_getter.cc |
+++ b/content/shell/shell_url_request_context_getter.cc |
@@ -24,6 +24,7 @@ |
#include "net/http/http_cache.h" |
#include "net/http/http_network_session.h" |
#include "net/http/http_server_properties_impl.h" |
+#include "net/http/transport_security_state.h" |
#include "net/proxy/proxy_service.h" |
#include "net/ssl/default_server_bound_cert_store.h" |
#include "net/ssl/server_bound_cert_service.h" |
@@ -107,6 +108,7 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
net::HostResolver::CreateDefaultResolver(NULL)); |
storage_->set_cert_verifier(net::CertVerifier::CreateDefault()); |
+ storage_->set_transport_security_state(new net::TransportSecurityState); |
if (command_line.HasSwitch(switches::kDumpRenderTree)) { |
storage_->set_proxy_service(net::ProxyService::CreateDirect()); |
} else { |
@@ -135,6 +137,8 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
net::HttpNetworkSession::Params network_session_params; |
network_session_params.cert_verifier = |
url_request_context_->cert_verifier(); |
+ network_session_params.transport_security_state = |
+ url_request_context_->transport_security_state(); |
network_session_params.server_bound_cert_service = |
url_request_context_->server_bound_cert_service(); |
network_session_params.proxy_service = |