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

Unified Diff: chrome/browser/sync/sync_stopped_reporter.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/sync/sync_stopped_reporter.cc
diff --git a/chrome/browser/sync/sync_stopped_reporter.cc b/chrome/browser/sync/sync_stopped_reporter.cc
index b57f03abede8a2c10dd9f4c01ab014e898092f93..ad7b9f42e973284fa771c68d5c562bb71405dee3 100644
--- a/chrome/browser/sync/sync_stopped_reporter.cc
+++ b/chrome/browser/sync/sync_stopped_reporter.cc
@@ -56,8 +56,8 @@ void SyncStoppedReporter::ReportSyncStopped(const std::string& access_token,
std::string msg;
event_request.SerializeToString(&msg);
- fetcher_.reset(net::URLFetcher::Create(
- sync_event_url_, net::URLFetcher::POST, this));
+ fetcher_ =
+ net::URLFetcher::Create(sync_event_url_, net::URLFetcher::POST, this);
fetcher_->AddExtraRequestHeader(base::StringPrintf(
"%s: Bearer %s", net::HttpRequestHeaders::kAuthorization,
access_token.c_str()));

Powered by Google App Engine
This is Rietveld 408576698