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

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 p347709. 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 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::

Powered by Google App Engine
This is Rietveld 408576698