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

Unified Diff: components/web_resource/web_resource_service.cc

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded Pass() calls Created 5 years, 8 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 | « components/update_client/utils.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_resource/web_resource_service.cc
diff --git a/components/web_resource/web_resource_service.cc b/components/web_resource/web_resource_service.cc
index 40225b8c6bf755e9d3cc484e3e1924fc01048a3d..398e6c5dd9aea975c4c4d667e4e8b6d407ba6add 100644
--- a/components/web_resource/web_resource_service.cc
+++ b/components/web_resource/web_resource_service.cc
@@ -112,8 +112,8 @@ void WebResourceService::StartFetch() {
application_locale_);
DVLOG(1) << "WebResourceService StartFetch " << web_resource_server;
- url_fetcher_.reset(
- net::URLFetcher::Create(web_resource_server, net::URLFetcher::GET, this));
+ url_fetcher_ =
+ net::URLFetcher::Create(web_resource_server, net::URLFetcher::GET, this);
// Do not let url fetcher affect existing state in system context
// (by setting cookies, for example).
url_fetcher_->SetLoadFlags(net::LOAD_DISABLE_CACHE |
« no previous file with comments | « components/update_client/utils.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698