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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 10831277: [net] Change factory methods for HostResolver and HostCache to return a scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary initialization; respond to review Created 8 years, 2 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
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | remoting/host/url_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 5bf08831e1a1e3ceceb33c35cd411245a4a056f5..33ea74272a44d26f17016b95869a48fb80647077 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -61,7 +61,8 @@ void TestURLRequestContext::Init() {
initialized_ = true;
if (!host_resolver())
- context_storage_.set_host_resolver(new net::MockCachingHostResolver());
+ context_storage_.set_host_resolver(
+ scoped_ptr<net::HostResolver>(new net::MockCachingHostResolver()));
if (!proxy_service())
context_storage_.set_proxy_service(net::ProxyService::CreateDirect());
if (!cert_verifier())
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | remoting/host/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698