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 8993d66d6a5823bcc7c398a958da1f77c207da28..fa0f241d18cbe3d5ba9e0e165e7a1c8c236b1408 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 |
@@ -529,16 +529,16 @@ void DataReductionProxyTestContext::AttachToURLRequestContext( |
// |request_context_storage| takes ownership of the network delegate. |
request_context_storage->set_network_delegate( |
- io_data()->CreateNetworkDelegate( |
- scoped_ptr<net::NetworkDelegate>(new net::TestNetworkDelegate()), |
- true).release()); |
+ io_data() |
+ ->CreateNetworkDelegate( |
+ make_scoped_ptr(new net::TestNetworkDelegate()).Pass(), true) |
+ .Pass()); |
- // |request_context_storage| takes ownership of the job factory. |
request_context_storage->set_job_factory( |
- new net::URLRequestInterceptingJobFactory( |
+ make_scoped_ptr(new net::URLRequestInterceptingJobFactory( |
scoped_ptr<net::URLRequestJobFactory>( |
new net::URLRequestJobFactoryImpl()), |
- io_data()->CreateInterceptor().Pass())); |
+ io_data()->CreateInterceptor().Pass()))); |
} |
void DataReductionProxyTestContext:: |