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

Unified Diff: components/precache/core/precache_fetcher.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/policy/core/common/cloud/user_info_fetcher.cc ('k') | components/rappor/log_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/precache_fetcher.cc
diff --git a/components/precache/core/precache_fetcher.cc b/components/precache/core/precache_fetcher.cc
index 49f84a216ec7c27a366269b51b83a65cb2cc9b38..b6e75afcfdf1c34c03753005cd138f4dc8758613 100644
--- a/components/precache/core/precache_fetcher.cc
+++ b/components/precache/core/precache_fetcher.cc
@@ -121,7 +121,7 @@ PrecacheFetcher::Fetcher::Fetcher(
net::URLRequestContextGetter* request_context, const GURL& url,
const base::Callback<void(const URLFetcher&)>& callback)
: callback_(callback) {
- url_fetcher_.reset(URLFetcher::Create(url, URLFetcher::GET, this));
+ url_fetcher_ = URLFetcher::Create(url, URLFetcher::GET, this);
url_fetcher_->SetRequestContext(request_context);
url_fetcher_->Start();
}
« no previous file with comments | « components/policy/core/common/cloud/user_info_fetcher.cc ('k') | components/rappor/log_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698