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

Unified Diff: remoting/host/ipc_desktop_environment.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/fake_host_extension.cc ('k') | remoting/host/mouse_cursor_monitor_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_desktop_environment.cc
diff --git a/remoting/host/ipc_desktop_environment.cc b/remoting/host/ipc_desktop_environment.cc
index 884bd19ace6babd5b55064667ceac4d0f91b4e54..fa3c56646af11816bd5a8c7c9236891342d7ec8f 100644
--- a/remoting/host/ipc_desktop_environment.cc
+++ b/remoting/host/ipc_desktop_environment.cc
@@ -94,10 +94,10 @@ std::unique_ptr<DesktopEnvironment> IpcDesktopEnvironmentFactory::Create(
base::WeakPtr<ClientSessionControl> client_session_control) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
- return base::WrapUnique(new IpcDesktopEnvironment(
+ return base::MakeUnique<IpcDesktopEnvironment>(
audio_task_runner_, caller_task_runner_, io_task_runner_,
client_session_control, connector_factory_.GetWeakPtr(), curtain_enabled_,
- supports_touch_events_));
+ supports_touch_events_);
}
void IpcDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {
« no previous file with comments | « remoting/host/fake_host_extension.cc ('k') | remoting/host/mouse_cursor_monitor_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698