| Index: chrome/browser/profiles/profile_io_data.cc
|
| diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
|
| index 179ca0ee1d2475c009829a15a869d4675b839d49..18853e277718204b0bbe5552bb4a9a2ea6a5c9d1 100644
|
| --- a/chrome/browser/profiles/profile_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_io_data.cc
|
| @@ -79,6 +79,7 @@
|
| #include "net/url_request/ftp_protocol_handler.h"
|
| #include "net/url_request/url_request.h"
|
| #include "net/url_request/url_request_context.h"
|
| +#include "net/url_request/url_request_context_builder.h"
|
| #include "net/url_request/url_request_file_job.h"
|
| #include "net/url_request/url_request_intercepting_job_factory.h"
|
| #include "net/url_request/url_request_interceptor.h"
|
| @@ -1124,10 +1125,10 @@ void ProfileIOData::Init(
|
| cert_verifier_.reset(
|
| new net::MultiThreadedCertVerifier(verify_proc.get()));
|
| }
|
| - main_request_context_->set_cert_verifier(cert_verifier_.get());
|
| + main_request_context_->set_cert_verifier(cert_verifier_.get()); // WJM
|
| #else
|
| main_request_context_->set_cert_verifier(
|
| - io_thread_globals->cert_verifier.get());
|
| + io_thread_globals->cert_verifier.get()); // WJM
|
| #endif
|
| }
|
|
|
| @@ -1149,7 +1150,7 @@ void ProfileIOData::ApplyProfileParamsToContext(
|
| net::URLRequestContext* context) const {
|
| context->set_http_user_agent_settings(
|
| chrome_http_user_agent_settings_.get());
|
| - context->set_ssl_config_service(profile_params_->ssl_config_service.get());
|
| + context->set_ssl_config_service(profile_params_->ssl_config_service.get()); // WJM
|
| }
|
|
|
| scoped_ptr<net::URLRequestJobFactory> ProfileIOData::SetUpJobFactoryDefaults(
|
| @@ -1295,19 +1296,11 @@ scoped_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory(
|
| IOThread* const io_thread = profile_params->io_thread;
|
|
|
| io_thread->InitializeNetworkSessionParams(¶ms);
|
| + net::URLRequestContextBuilder::SetHttpNetworkSessionComponents(¶ms,
|
| + context);
|
|
|
| - params.host_resolver = context->host_resolver();
|
| - params.cert_verifier = context->cert_verifier();
|
| - params.channel_id_service = context->channel_id_service();
|
| - params.transport_security_state = context->transport_security_state();
|
| - params.cert_transparency_verifier = context->cert_transparency_verifier();
|
| - params.proxy_service = context->proxy_service();
|
| + // TODO(wjmaclean): should this move into the function call above?
|
| params.ssl_session_cache_shard = GetSSLSessionCacheShard();
|
| - params.ssl_config_service = context->ssl_config_service();
|
| - params.http_auth_handler_factory = context->http_auth_handler_factory();
|
| - params.network_delegate = context->network_delegate();
|
| - params.http_server_properties = context->http_server_properties();
|
| - params.net_log = context->net_log();
|
| if (data_reduction_proxy_io_data_.get())
|
| params.proxy_delegate = data_reduction_proxy_io_data_->proxy_delegate();
|
|
|
|
|