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

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: Lots of fixes driven by try jobs. Created 5 years, 4 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 4a37e8ee371e9c5dd8652839d0b48d0dc66f22eb..60f41c6305dbf0d41fad2db5529738b0aecdb8eb 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
@@ -527,16 +527,17 @@ 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()
Deprecated (see juliatuttle) 2015/09/08 15:39:42 Is this what git cl format does? Separating the io
Randy Smith (Not in Mondays) 2015/09/08 16:33:17 Yeah, that's git cl format (changed back, re-ran,
+ ->CreateNetworkDelegate(
+ scoped_ptr<net::NetworkDelegate>(new net::TestNetworkDelegate()),
pauljensen 2015/08/28 13:38:02 I see lots of places in this CL where you've added
Randy Smith (Not in Mondays) 2015/09/02 23:42:19 So "Done", with the exception of places where I'm
+ 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