Index: ios/web/shell/shell_url_request_context_getter.mm |
diff --git a/ios/web/shell/shell_url_request_context_getter.mm b/ios/web/shell/shell_url_request_context_getter.mm |
index 4805d544e1212b3bf6f2e60b126e106e3c0893d3..ce2d5d3d89f7a9de6a1e2cfd9a56de78e859e163 100644 |
--- a/ios/web/shell/shell_url_request_context_getter.mm |
+++ b/ios/web/shell/shell_url_request_context_getter.mm |
@@ -120,27 +120,27 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get())); |
storage_->set_host_resolver(std::move(host_resolver)); |
- net::HttpNetworkSession::Params network_session_params; |
- network_session_params.cert_verifier = |
+ net::HttpNetworkSession::Context network_session_context; |
+ network_session_context.cert_verifier = |
url_request_context_->cert_verifier(); |
- network_session_params.transport_security_state = |
+ network_session_context.transport_security_state = |
url_request_context_->transport_security_state(); |
- network_session_params.cert_transparency_verifier = |
+ network_session_context.cert_transparency_verifier = |
url_request_context_->cert_transparency_verifier(); |
- network_session_params.ct_policy_enforcer = |
+ network_session_context.ct_policy_enforcer = |
url_request_context_->ct_policy_enforcer(); |
- network_session_params.channel_id_service = |
+ network_session_context.channel_id_service = |
url_request_context_->channel_id_service(); |
- network_session_params.net_log = url_request_context_->net_log(); |
- network_session_params.proxy_service = |
+ network_session_context.net_log = url_request_context_->net_log(); |
+ network_session_context.proxy_service = |
url_request_context_->proxy_service(); |
- network_session_params.ssl_config_service = |
+ network_session_context.ssl_config_service = |
url_request_context_->ssl_config_service(); |
- network_session_params.http_auth_handler_factory = |
+ network_session_context.http_auth_handler_factory = |
url_request_context_->http_auth_handler_factory(); |
- network_session_params.http_server_properties = |
+ network_session_context.http_server_properties = |
url_request_context_->http_server_properties(); |
- network_session_params.host_resolver = |
+ network_session_context.host_resolver = |
url_request_context_->host_resolver(); |
base::FilePath cache_path = base_path_.Append(FILE_PATH_LITERAL("Cache")); |
@@ -150,7 +150,8 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
cache_path, 0, cache_task_runner_)); |
storage_->set_http_network_session( |
- base::MakeUnique<net::HttpNetworkSession>(network_session_params)); |
+ base::MakeUnique<net::HttpNetworkSession>( |
+ net::HttpNetworkSession::Params(), network_session_context)); |
storage_->set_http_transaction_factory(base::MakeUnique<net::HttpCache>( |
storage_->http_network_session(), std::move(main_backend), |
true /* set_up_quic_server_info */)); |