| 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 57ca56c6cb450f5d23d1ba152b53892e47a2cc28..57c6ae8c1d21c9d283568967da7cd8b5353077c5 100644
|
| --- a/chrome/browser/profiles/profile_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_io_data.cc
|
| @@ -67,6 +67,7 @@
|
| #include "net/base/network_quality_estimator.h"
|
| #include "net/cert/cert_verifier.h"
|
| #include "net/cookies/canonical_cookie.h"
|
| +#include "net/http/http_network_session.h"
|
| #include "net/http/http_transaction_factory.h"
|
| #include "net/http/http_util.h"
|
| #include "net/http/transport_security_persister.h"
|
| @@ -1300,13 +1301,12 @@ void ProfileIOData::DestroyResourceContext() {
|
| resource_context_.reset();
|
| }
|
|
|
| -scoped_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory(
|
| - const ProfileParams* profile_params,
|
| - net::HttpCache::BackendFactory* main_backend) const {
|
| +scoped_ptr<net::HttpNetworkSession> ProfileIOData::CreateHttpNetworkSession(
|
| + const ProfileParams& profile_params) const {
|
| net::HttpNetworkSession::Params params;
|
| net::URLRequestContext* context = main_request_context();
|
|
|
| - IOThread* const io_thread = profile_params->io_thread;
|
| + IOThread* const io_thread = profile_params.io_thread;
|
|
|
| io_thread->InitializeNetworkSessionParams(¶ms);
|
| net::URLRequestContextBuilder::SetHttpNetworkSessionComponents(context,
|
| @@ -1320,11 +1320,19 @@ scoped_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory(
|
| if (data_reduction_proxy_io_data_.get())
|
| params.proxy_delegate = data_reduction_proxy_io_data_->proxy_delegate();
|
|
|
| - net::HttpNetworkSession* session = new net::HttpNetworkSession(params);
|
| + return scoped_ptr<net::HttpNetworkSession>(
|
| + new net::HttpNetworkSession(params));
|
| +}
|
| +
|
| +scoped_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory(
|
| + net::HttpNetworkSession* session,
|
| + net::HttpCache::BackendFactory* main_backend) const {
|
| + net::URLRequestContext* context = main_request_context();
|
| return scoped_ptr<net::HttpCache>(new net::HttpCache(
|
| new DevToolsNetworkTransactionFactory(
|
| network_controller_handle_.GetController(), session),
|
| - context->net_log(), main_backend));
|
| + context->net_log(), main_backend,
|
| + true /* set_up_quic_server_info */));
|
| }
|
|
|
| scoped_ptr<net::HttpCache> ProfileIOData::CreateHttpFactory(
|
| @@ -1333,7 +1341,8 @@ scoped_ptr<net::HttpCache> ProfileIOData::CreateHttpFactory(
|
| return scoped_ptr<net::HttpCache>(new net::HttpCache(
|
| new DevToolsNetworkTransactionFactory(
|
| network_controller_handle_.GetController(), shared_session),
|
| - shared_session->net_log(), backend));
|
| + shared_session->net_log(), backend,
|
| + true /* set_up_quic_server_info */));
|
| }
|
|
|
| void ProfileIOData::SetCookieSettingsForTesting(
|
|
|