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

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

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/remoting_me2me_host.cc ('k') | remoting/host/setup/me2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/host_starter.cc
diff --git a/remoting/host/setup/host_starter.cc b/remoting/host/setup/host_starter.cc
index c8cd535b07ff8d2f5a0d6915c8c44b53e6c7cce7..4e19f3cd35486743b9778d4e01f242329a4e4d34 100644
--- a/remoting/host/setup/host_starter.cc
+++ b/remoting/host/setup/host_starter.cc
@@ -43,9 +43,9 @@ std::unique_ptr<HostStarter> HostStarter::Create(
const std::string& chromoting_hosts_url,
net::URLRequestContextGetter* url_request_context_getter) {
return base::WrapUnique(new HostStarter(
- base::WrapUnique(new gaia::GaiaOAuthClient(url_request_context_getter)),
- base::WrapUnique(new remoting::ServiceClient(chromoting_hosts_url,
- url_request_context_getter)),
+ base::MakeUnique<gaia::GaiaOAuthClient>(url_request_context_getter),
+ base::MakeUnique<remoting::ServiceClient>(chromoting_hosts_url,
+ url_request_context_getter),
remoting::DaemonController::Create()));
}
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/setup/me2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698