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

Unified Diff: extensions/browser/content_hash_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
Index: extensions/browser/content_hash_fetcher.cc
diff --git a/extensions/browser/content_hash_fetcher.cc b/extensions/browser/content_hash_fetcher.cc
index e4190be3b533cf7e167f090399aa2896055972f4..eefc99145a31d5939b5ca170ce1d4ceb897d5044 100644
--- a/extensions/browser/content_hash_fetcher.cc
+++ b/extensions/browser/content_hash_fetcher.cc
@@ -237,8 +237,8 @@ void ContentHashFetcherJob::DoneCheckingForVerifiedContents(bool found) {
} else {
VLOG(1) << "Missing verified contents for " << extension_id_
<< ", fetching...";
- url_fetcher_.reset(
- net::URLFetcher::Create(fetch_url_, net::URLFetcher::GET, this));
+ url_fetcher_ =
+ net::URLFetcher::Create(fetch_url_, net::URLFetcher::GET, this);
url_fetcher_->SetRequestContext(request_context_);
url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES |
« no previous file with comments | « device/test/usb_test_gadget_impl.cc ('k') | extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698