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 9c66f0c46f7557f7db6dfba3122bf1f7779797c1..29e37277d67173f9f6cdbe4c47746f741c4113ed 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 = |