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

Unified Diff: remoting/host/setup/service_client.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: Fix another failure missed by my regex 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: remoting/host/setup/service_client.cc
diff --git a/remoting/host/setup/service_client.cc b/remoting/host/setup/service_client.cc
index 9ea1d529716f19cab4146918479237891a9d8f3e..260f76213ac5af6fbc175935f8d8049554037d76 100644
--- a/remoting/host/setup/service_client.cc
+++ b/remoting/host/setup/service_client.cc
@@ -111,8 +111,8 @@ void ServiceClient::Core::MakeChromotingRequest(
const std::string& oauth_access_token,
ServiceClient::Delegate* delegate) {
delegate_ = delegate;
- request_.reset(net::URLFetcher::Create(
- 0, GURL(chromoting_hosts_url_ + url_suffix), request_type, this));
+ request_ = net::URLFetcher::Create(
+ 0, GURL(chromoting_hosts_url_ + url_suffix), request_type, this);
request_->SetRequestContext(request_context_getter_.get());
request_->SetUploadData("application/json; charset=UTF-8", request_body);
request_->AddExtraRequestHeader("Authorization: OAuth " + oauth_access_token);

Powered by Google App Engine
This is Rietveld 408576698