Index: remoting/host/desktop_session_proxy.cc |
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc |
index 28f8296d9f1c49f7eb71ba8a83bd90b6cf8c24fb..7904a2db52094eca9c8bebbf7cfcb1e9b2edb5e5 100644 |
--- a/remoting/host/desktop_session_proxy.cc |
+++ b/remoting/host/desktop_session_proxy.cc |
@@ -253,10 +253,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. |