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

Unified Diff: chrome/browser/profile_resetter/brandcode_config_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 | « chrome/browser/net/sdch_browsertest.cc ('k') | chrome/browser/profiles/profile_downloader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile_resetter/brandcode_config_fetcher.cc
diff --git a/chrome/browser/profile_resetter/brandcode_config_fetcher.cc b/chrome/browser/profile_resetter/brandcode_config_fetcher.cc
index f9c6c837f8f2cb64eec0be527e42dae304782d48..117fa1633e165d00456bb6d6231ae81f861d9af5 100644
--- a/chrome/browser/profile_resetter/brandcode_config_fetcher.cc
+++ b/chrome/browser/profile_resetter/brandcode_config_fetcher.cc
@@ -142,10 +142,8 @@ BrandcodeConfigFetcher::BrandcodeConfigFetcher(const FetchCallback& callback,
const std::string& brandcode)
: fetch_callback_(callback) {
DCHECK(!brandcode.empty());
- config_fetcher_.reset(net::URLFetcher::Create(0 /* ID used for testing */,
- url,
- net::URLFetcher::POST,
- this));
+ config_fetcher_ = net::URLFetcher::Create(0 /* ID used for testing */, url,
+ net::URLFetcher::POST, this);
config_fetcher_->SetRequestContext(
g_browser_process->system_request_context());
config_fetcher_->SetUploadData("text/xml", GetUploadData(brandcode));
« no previous file with comments | « chrome/browser/net/sdch_browsertest.cc ('k') | chrome/browser/profiles/profile_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698