Index: chrome/browser/profiles/profile_impl_io_data.cc |
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc |
index a2680af2597f5ad08869f40ecc01320ebabcebf7..e0069d6f62312306e329cfe1c055ef72cc8f4886 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -538,8 +538,8 @@ void ProfileImplIOData::InitializeInternal( |
new net::FtpNetworkLayer(io_thread_globals->host_resolver.get())); |
#endif // !defined(DISABLE_FTP_SUPPORT) |
- std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory( |
- new net::URLRequestJobFactoryImpl()); |
+ std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory = |
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers(); |
InstallProtocolHandlers(main_job_factory.get(), protocol_handlers); |
// Install the Offline Page Interceptor. |
@@ -606,8 +606,8 @@ void ProfileImplIOData:: |
extensions_cookie_store_ = content::CreateCookieStore(cookie_config); |
extensions_context->set_cookie_store(extensions_cookie_store_.get()); |
- std::unique_ptr<net::URLRequestJobFactoryImpl> extensions_job_factory( |
- new net::URLRequestJobFactoryImpl()); |
+ std::unique_ptr<net::URLRequestJobFactoryImpl> extensions_job_factory = |
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers(); |
// TODO(shalev): The extensions_job_factory has a NULL NetworkDelegate. |
// Without a network_delegate, this protocol handler will never |
// handle file: requests, but as a side effect it makes |
@@ -700,8 +700,8 @@ net::URLRequestContext* ProfileImplIOData::InitializeAppRequestContext( |
context->SetCookieStore(std::move(cookie_store)); |
context->SetHttpTransactionFactory(std::move(app_http_cache)); |
- std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory( |
- new net::URLRequestJobFactoryImpl()); |
+ std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory = |
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers(); |
InstallProtocolHandlers(job_factory.get(), protocol_handlers); |
// The data reduction proxy interceptor should be as close to the network |
// as possible. |