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 598605046200ef9c011ca5395fb4096974d8d16c..ba883d28253e8e224d9345e7aee50153b0c06f94 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -532,8 +532,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::CreateWithDefaultProtocolHandlers(); |
InstallProtocolHandlers(main_job_factory.get(), protocol_handlers); |
// The data reduction proxy interceptor should be as close to the network |
@@ -592,8 +592,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::CreateWithDefaultProtocolHandlers(); |
// 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 |
@@ -662,8 +662,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::CreateWithDefaultProtocolHandlers(); |
InstallProtocolHandlers(job_factory.get(), protocol_handlers); |
// The data reduction proxy interceptor should be as close to the network |
// as possible. |