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

Unified Diff: chrome/test/chromedriver/net/url_request_context_getter.cc

Issue 1303493002: Make UrlRequestContextBuilder take scoped_ptr's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync and fix tiny resulting build failure 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: chrome/test/chromedriver/net/url_request_context_getter.cc
diff --git a/chrome/test/chromedriver/net/url_request_context_getter.cc b/chrome/test/chromedriver/net/url_request_context_getter.cc
index 18d6fb040cb8d4d04604d2ee9c7abef43337f8e7..2d7b47c8a28ec80b1bf46c391ee8f8b5bcc454c8 100644
--- a/chrome/test/chromedriver/net/url_request_context_getter.cc
+++ b/chrome/test/chromedriver/net/url_request_context_getter.cc
@@ -22,9 +22,9 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
// net::HttpServer fails to parse headers if user-agent header is blank.
builder.set_user_agent("chromedriver");
builder.DisableHttpCache();
- builder.set_proxy_config_service(
- new net::ProxyConfigServiceFixed(net::ProxyConfig::CreateDirect()));
- url_request_context_.reset(builder.Build());
+ builder.set_proxy_config_service(make_scoped_ptr(
+ new net::ProxyConfigServiceFixed(net::ProxyConfig::CreateDirect())));
+ url_request_context_ = builder.Build().Pass();
}
return url_request_context_.get();
}
« no previous file with comments | « chrome/service/net/service_url_request_context_getter.cc ('k') | chromecast/net/connectivity_checker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698