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

Unified Diff: chrome/browser/chromeos/policy/upload_job.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/chromeos/policy/upload_job.cc
diff --git a/chrome/browser/chromeos/policy/upload_job.cc b/chrome/browser/chromeos/policy/upload_job.cc
index 6c0a621bcec77043b36a088f20a9f4258b99ecc0..3ef63ff7a5aa0527ead53a518a09608651638e08 100644
--- a/chrome/browser/chromeos/policy/upload_job.cc
+++ b/chrome/browser/chromeos/policy/upload_job.cc
@@ -314,8 +314,8 @@ void UploadJob::CreateAndStartURLFetcher(const std::string& access_token) {
std::string content_type = kUploadContentType;
content_type.append("; boundary=");
content_type.append(*mime_boundary_.get());
- upload_fetcher_.reset(
- net::URLFetcher::Create(upload_url_, net::URLFetcher::POST, this));
+ upload_fetcher_ =
+ net::URLFetcher::Create(upload_url_, net::URLFetcher::POST, this);
upload_fetcher_->SetRequestContext(url_context_getter_.get());
upload_fetcher_->SetUploadData(content_type, *post_data_);
upload_fetcher_->AddExtraRequestHeader(

Powered by Google App Engine
This is Rietveld 408576698