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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.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_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 8ad2b9c00719d4299d830fd904b634fd36252232..d13f8c49ae2d633d35238e57e61afe1b1011de05 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
@@ -92,11 +92,11 @@ class DataReductionProxyProtocolTest : public testing::Test {
}
// Sets up the |TestURLRequestContext| with the provided |ProxyService|.
- void ConfigureTestDependencies(ProxyService* proxy_service) {
+ void ConfigureTestDependencies(scoped_ptr<ProxyService> proxy_service) {
// Create a context with delayed initialization.
context_.reset(new TestURLRequestContext(true));
- proxy_service_.reset(proxy_service);
+ proxy_service_ = proxy_service.Pass();
context_->set_client_socket_factory(&mock_socket_factory_);
context_->set_proxy_service(proxy_service_.get());
network_delegate_.reset(new net::TestNetworkDelegate());

Powered by Google App Engine
This is Rietveld 408576698