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

Unified Diff: chromeos/timezone/timezone_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: chromeos/timezone/timezone_request.cc
diff --git a/chromeos/timezone/timezone_request.cc b/chromeos/timezone/timezone_request.cc
index c530e46c0897fcc6b4805adb9885ef9f46713fc8..0a41f9fb05f7f9dbd28587a7bd988e8045387d30 100644
--- a/chromeos/timezone/timezone_request.cc
+++ b/chromeos/timezone/timezone_request.cc
@@ -332,8 +332,8 @@ void TimeZoneRequest::StartRequest() {
request_started_at_ = base::Time::Now();
++retries_;
- url_fetcher_.reset(
- net::URLFetcher::Create(request_url_, net::URLFetcher::GET, this));
+ url_fetcher_ =
+ net::URLFetcher::Create(request_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 | « chromeos/geolocation/simple_geolocation_request.cc ('k') | components/autofill/content/browser/wallet/wallet_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698