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.
This commit is contained in:
Adam Roben 2014-01-30 09:01:23 -05:00
parent dcaaeacfe3
commit c4935acbb1

View file

@ -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 =