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

Unified Diff: content/browser/geolocation/network_location_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
Index: content/browser/geolocation/network_location_request.cc
diff --git a/content/browser/geolocation/network_location_request.cc b/content/browser/geolocation/network_location_request.cc
index 84ba5b05edcc5dd1b333feee72c9190218af8735..253e321bb54acb9eec9042e556248d9614f6aa8e 100644
--- a/content/browser/geolocation/network_location_request.cc
+++ b/content/browser/geolocation/network_location_request.cc
@@ -123,8 +123,8 @@ bool NetworkLocationRequest::MakeRequest(const base::string16& access_token,
wifi_data_timestamp_ = timestamp;
GURL request_url = FormRequestURL(url_);
- url_fetcher_.reset(net::URLFetcher::Create(
- url_fetcher_id_for_tests, request_url, net::URLFetcher::POST, this));
+ url_fetcher_ = net::URLFetcher::Create(url_fetcher_id_for_tests, request_url,
+ net::URLFetcher::POST, this);
url_fetcher_->SetRequestContext(url_context_.get());
std::string upload_data;
FormUploadData(wifi_data, timestamp, access_token, &upload_data);
« no previous file with comments | « components/web_resource/web_resource_service.cc ('k') | content/browser/speech/google_one_shot_remote_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698