Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc |
index 8b6f768042fc3bf244ce29d6c055462228e1df03..17d0fe6340483aac663704a9f6857a7e9c02b823 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc |
@@ -601,11 +601,12 @@ void DataReductionProxyTestContext::AttachToURLRequestContext( |
io_data()->CreateNetworkDelegate( |
base::WrapUnique(new net::TestNetworkDelegate()), true)); |
+ std::unique_ptr<net::URLRequestJobFactory> job_factory_impl = |
+ net::URLRequestJobFactoryImpl::CreateWithDefaultProtocolHandlers(); |
+ |
request_context_storage->set_job_factory( |
base::WrapUnique(new net::URLRequestInterceptingJobFactory( |
- std::unique_ptr<net::URLRequestJobFactory>( |
- new net::URLRequestJobFactoryImpl()), |
- io_data()->CreateInterceptor()))); |
+ std::move(job_factory_impl), io_data()->CreateInterceptor()))); |
} |
void DataReductionProxyTestContext:: |