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

Unified Diff: remoting/host/remoting_me2me_host.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/pam_authorization_factory_posix.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/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index d214fd13dca71c2b7663ce44c4adfcdb8ec4edfb..bb15d59340fc5297cfd1dae6ecbbd97a86ff5bfa 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -1436,9 +1436,9 @@ void HostProcess::StartHost() {
scoped_refptr<protocol::TransportContext> transport_context =
new protocol::TransportContext(
signal_strategy_.get(),
- base::WrapUnique(new protocol::ChromiumPortAllocatorFactory()),
- base::WrapUnique(new ChromiumUrlRequestFactory(
- context_->url_request_context_getter())),
+ base::MakeUnique<protocol::ChromiumPortAllocatorFactory>(),
+ base::MakeUnique<ChromiumUrlRequestFactory>(
+ context_->url_request_context_getter()),
network_settings, protocol::TransportRole::SERVER);
transport_context->set_ice_config_url(
ServiceUrls::GetInstance()->ice_config_url());
@@ -1461,8 +1461,8 @@ void HostProcess::StartHost() {
context_->video_encode_task_runner()));
if (security_key_auth_policy_enabled_ && security_key_extension_supported_) {
- host_->AddExtension(base::WrapUnique(
- new SecurityKeyExtension(context_->file_task_runner())));
+ host_->AddExtension(
+ base::MakeUnique<SecurityKeyExtension>(context_->file_task_runner()));
}
// TODO(simonmorris): Get the maximum session duration from a policy.
« no previous file with comments | « remoting/host/pam_authorization_factory_posix.cc ('k') | remoting/host/setup/host_starter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698