Index: remoting/host/desktop_session_proxy.cc |
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc |
index 73497f9ded9cbed4f2107321fc8bc37ecf97d937..f34dd04ec6f5849bd3f6957c04a6b7c964440758 100644 |
--- a/remoting/host/desktop_session_proxy.cc |
+++ b/remoting/host/desktop_session_proxy.cc |
@@ -254,10 +254,10 @@ bool DesktopSessionProxy::AttachToDesktop( |
#endif |
// Connect to the desktop process. |
- desktop_channel_.reset(new IPC::ChannelProxy(desktop_channel_handle, |
- IPC::Channel::MODE_CLIENT, |
- this, |
- io_task_runner_.get())); |
+ desktop_channel_ = IPC::ChannelProxy::CreateClient( |
+ desktop_channel_handle, |
+ this, |
+ io_task_runner_.get()); |
// Pass ID of the client (which is authenticated at this point) to the desktop |
// session agent and start the agent. |