Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc |
index 95b485c32afd99cc0306ad496a19b17b5330ee59..5b5909353d5238e9d5253e60941ae69a249d4054 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc |
@@ -147,8 +147,8 @@ class DataReductionProxyInterceptorTest : public testing::Test { |
#endif |
TEST_F(DataReductionProxyInterceptorTest, MAYBE_TestJobFactoryChaining) { |
// Verifies that job factories can be chained. |
- std::unique_ptr<net::URLRequestJobFactory> impl( |
- new net::URLRequestJobFactoryImpl()); |
+ std::unique_ptr<net::URLRequestJobFactory> impl = |
+ net::URLRequestJobFactoryImpl::CreateWithDefaultProtocolHandlers(); |
CountingURLRequestInterceptor* interceptor2 = |
new CountingURLRequestInterceptor(); |
@@ -222,8 +222,8 @@ class DataReductionProxyInterceptorWithServerTest : public testing::Test { |
context_.set_proxy_service(proxy_service_.get()); |
- std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory_impl( |
- new net::URLRequestJobFactoryImpl()); |
+ std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory_impl = |
+ net::URLRequestJobFactoryImpl::CreateWithDefaultProtocolHandlers(); |
job_factory_.reset(new net::URLRequestInterceptingJobFactory( |
std::move(job_factory_impl), |
test_context_->io_data()->CreateInterceptor())); |