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..7b56386fd656dcddf6bff96baea6190d98a8b9d1 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, |
+ desktop_channel_ = IPC::ChannelProxy::Create(desktop_channel_handle, |
IPC::Channel::MODE_CLIENT, |
this, |
- io_task_runner_.get())); |
+ io_task_runner_.get()); |
// Pass ID of the client (which is authenticated at this point) to the desktop |
// session agent and start the agent. |