From a91d0513fa16b2e8c48acbaf7a5c18659ab10d07 Mon Sep 17 00:00:00 2001 From: erikchen Date: Mon, 21 Mar 2016 16:19:40 -0700 Subject: Add support for Attachment Brokering of IPC::Channels on multiple threads. Attachment brokering makes the assumption that there's a single thread on which IO related to IPC::Channels occurs. This assumption is violated when the flag --single-process is set. BUG=590213 Review URL: https://codereview.chromium.org/1739203004 Cr-Commit-Position: refs/heads/master@{#382431} --- remoting/host/win/unprivileged_process_delegate.cc | 2 +- remoting/host/win/wts_session_process_delegate.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'remoting/host') diff --git a/remoting/host/win/unprivileged_process_delegate.cc b/remoting/host/win/unprivileged_process_delegate.cc index 67a6b21..c4b9276 100644 --- a/remoting/host/win/unprivileged_process_delegate.cc +++ b/remoting/host/win/unprivileged_process_delegate.cc @@ -338,7 +338,7 @@ void UnprivilegedProcessDelegate::LaunchProcess( channel_ = std::move(server); IPC::AttachmentBroker::GetGlobal()->RegisterCommunicationChannel( - channel_.get()); + channel_.get(), io_task_runner_); ReportProcessLaunched(std::move(worker_process)); } diff --git a/remoting/host/win/wts_session_process_delegate.cc b/remoting/host/win/wts_session_process_delegate.cc index efdb8b8..9bd58bf 100644 --- a/remoting/host/win/wts_session_process_delegate.cc +++ b/remoting/host/win/wts_session_process_delegate.cc @@ -427,7 +427,7 @@ void WtsSessionProcessDelegate::Core::DoLaunchProcess() { pipe_ = std::move(pipe); IPC::AttachmentBroker::GetGlobal()->RegisterCommunicationChannel( - channel_.get()); + channel_.get(), io_task_runner_); // Report success if the worker process is lauched directly. Otherwise, PID of // the client connected to the pipe will be used later. See -- cgit v1.1