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

Unified Diff: chrome/service/net/service_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/service/net/service_url_request_context_getter.cc
diff --git a/chrome/service/net/service_url_request_context_getter.cc b/chrome/service/net/service_url_request_context_getter.cc
index 0f11bfaf97367895c132ded7103dd27cd1c8f906..456466e8a10cd0b2ef2e629352798be7c4b582a0 100644
--- a/chrome/service/net/service_url_request_context_getter.cc
+++ b/chrome/service/net/service_url_request_context_getter.cc
@@ -108,9 +108,9 @@ ServiceURLRequestContextGetter::GetURLRequestContext() {
net::URLRequestContextBuilder builder;
builder.set_user_agent(user_agent_);
builder.set_accept_language("en-us,fr");
- builder.set_proxy_config_service(proxy_config_service_.release());
+ builder.set_proxy_config_service(proxy_config_service_.Pass());
builder.set_throttling_enabled(true);
- url_request_context_.reset(builder.Build());
+ url_request_context_ = builder.Build().Pass();
}
return url_request_context_.get();
}

Powered by Google App Engine
This is Rietveld 408576698