Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Sync'd to revision p349162. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c3755ac8aa14238cf0b43ec8f77aa1936d5356ae..6cf17d3ea0b9c4f1ce6f30819953aceea7c54827 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
@@ -552,16 +552,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::

Powered by Google App Engine
This is Rietveld 408576698