From c4935acbb1d236066f17cfba867cdd49d8e3f202 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Thu, 30 Jan 2014 09:01:23 -0500 Subject: [PATCH] Fix debug assertions about transport_security_state This code was added to content_shell in https://chromiumcodereview.appspot.com/16501002 and we never picked it up. --- brightray/browser/url_request_context_getter.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brightray/browser/url_request_context_getter.cc b/brightray/browser/url_request_context_getter.cc index 4324a931165..4b26d7a9364 100644 --- a/brightray/browser/url_request_context_getter.cc +++ b/brightray/browser/url_request_context_getter.cc @@ -98,6 +98,7 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() { url_request_context_->network_delegate())); storage_->set_cert_verifier(net::CertVerifier::CreateDefault()); + storage_->set_transport_security_state(new net::TransportSecurityState); storage_->set_ssl_config_service(new net::SSLConfigServiceDefaults); storage_->set_http_auth_handler_factory( net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get())); @@ -118,6 +119,8 @@ net::URLRequestContext* URLRequestContextGetter::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 =