| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
|
| index e44a9c2143f12741ff1dd992fb535b39d6b1dfe8..f87aa9105ece7f5657ebc7fecb06c33946abe830 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
|
| @@ -69,7 +69,9 @@ class SimpleURLRequestInterceptor : public net::URLRequestInterceptor {
|
| net::URLRequestJob* MaybeInterceptRequest(
|
| net::URLRequest* request,
|
| net::NetworkDelegate* network_delegate) const override {
|
| - return net::URLRequestHttpJob::Factory(request, network_delegate, "http");
|
| + return new net::URLRequestHttpJob(
|
| + request, network_delegate,
|
| + request->context()->http_user_agent_settings());
|
| }
|
| };
|
|
|
| @@ -118,8 +120,8 @@ class DataReductionProxyProtocolTest : public testing::Test {
|
| new DataReductionProxyInterceptor(
|
| test_context_->config(), test_context_->io_data()->config_client(),
|
| bypass_stats_.get(), test_context_->event_creator());
|
| - std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory_impl(
|
| - new net::URLRequestJobFactoryImpl());
|
| + std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory_impl =
|
| + net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
|
| job_factory_.reset(new net::URLRequestInterceptingJobFactory(
|
| std::move(job_factory_impl), base::WrapUnique(interceptor)));
|
|
|
|
|