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

Unified Diff: remoting/host/setup/host_starter.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 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 | « remoting/host/setup/daemon_controller_delegate_win.cc ('k') | remoting/host/setup/host_starter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/host_starter.h
diff --git a/remoting/host/setup/host_starter.h b/remoting/host/setup/host_starter.h
index 881721bf2eac8cfbde44c3c2810de030b2e3688a..52eacfdd418dc1cdb0696f5b590a7e68cfeec2ec 100644
--- a/remoting/host/setup/host_starter.h
+++ b/remoting/host/setup/host_starter.h
@@ -38,7 +38,7 @@ class HostStarter : public gaia::GaiaOAuthClient::Delegate,
~HostStarter() override;
// Creates a HostStarter.
- static scoped_ptr<HostStarter> Create(
+ static std::unique_ptr<HostStarter> Create(
const std::string& chromoting_hosts_url,
net::URLRequestContextGetter* url_request_context_getter);
@@ -72,16 +72,16 @@ class HostStarter : public gaia::GaiaOAuthClient::Delegate,
void OnNetworkError(int response_code) override;
private:
- HostStarter(scoped_ptr<gaia::GaiaOAuthClient> oauth_client,
- scoped_ptr<remoting::ServiceClient> service_client,
+ HostStarter(std::unique_ptr<gaia::GaiaOAuthClient> oauth_client,
+ std::unique_ptr<remoting::ServiceClient> service_client,
scoped_refptr<remoting::DaemonController> daemon_controller);
void StartHostProcess();
void OnHostStarted(DaemonController::AsyncResult result);
- scoped_ptr<gaia::GaiaOAuthClient> oauth_client_;
- scoped_ptr<remoting::ServiceClient> service_client_;
+ std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_;
+ std::unique_ptr<remoting::ServiceClient> service_client_;
scoped_refptr<remoting::DaemonController> daemon_controller_;
gaia::OAuthClientInfo oauth_client_info_;
std::string host_name_;
« no previous file with comments | « remoting/host/setup/daemon_controller_delegate_win.cc ('k') | remoting/host/setup/host_starter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698