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

Unified Diff: chrome/browser/chromeos/customization/customization_wallpaper_downloader.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: chrome/browser/chromeos/customization/customization_wallpaper_downloader.cc
diff --git a/chrome/browser/chromeos/customization/customization_wallpaper_downloader.cc b/chrome/browser/chromeos/customization/customization_wallpaper_downloader.cc
index 3213831d74a059084a7929cba9c70092a31a9b3d..08537c6e8edae86d07825e76afcbbc70c81a47c4 100644
--- a/chrome/browser/chromeos/customization/customization_wallpaper_downloader.cc
+++ b/chrome/browser/chromeos/customization/customization_wallpaper_downloader.cc
@@ -86,8 +86,8 @@ void CustomizationWallpaperDownloader::StartRequest() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(wallpaper_url_.is_valid());
- url_fetcher_.reset(
- net::URLFetcher::Create(wallpaper_url_, net::URLFetcher::GET, this));
+ url_fetcher_ =
+ net::URLFetcher::Create(wallpaper_url_, net::URLFetcher::GET, this);
url_fetcher_->SetRequestContext(url_context_getter_.get());
url_fetcher_->SetLoadFlags(net::LOAD_BYPASS_CACHE |
net::LOAD_DISABLE_CACHE |
« no previous file with comments | « chrome/browser/chromeos/customization/customization_document.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698