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

Unified Diff: google_apis/gcm/engine/unregistration_request.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 | « google_apis/gcm/engine/registration_request.cc ('k') | ios/chrome/browser/net/image_fetcher.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/unregistration_request.cc
diff --git a/google_apis/gcm/engine/unregistration_request.cc b/google_apis/gcm/engine/unregistration_request.cc
index 7272fc70bdfd290f80c09d49850f3079c2590035..9b337786f3e8a9c985fffd4206e242eeeb6566de 100644
--- a/google_apis/gcm/engine/unregistration_request.cc
+++ b/google_apis/gcm/engine/unregistration_request.cc
@@ -133,8 +133,8 @@ void UnregistrationRequest::Start() {
DCHECK(request_info_.security_token != 0UL);
DCHECK(!url_fetcher_.get());
- url_fetcher_.reset(net::URLFetcher::Create(
- registration_url_, net::URLFetcher::POST, this));
+ url_fetcher_ =
+ net::URLFetcher::Create(registration_url_, net::URLFetcher::POST, this);
url_fetcher_->SetRequestContext(request_context_getter_.get());
std::string android_id = base::Uint64ToString(request_info_.android_id);
« no previous file with comments | « google_apis/gcm/engine/registration_request.cc ('k') | ios/chrome/browser/net/image_fetcher.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698