summaryrefslogtreecommitdiffstats
path: root/remoting/host
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2016-03-21 16:19:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-21 23:20:55 +0000
commita91d0513fa16b2e8c48acbaf7a5c18659ab10d07 (patch)
treea1da38fd22b8fa4c03196341b49f5a0aef4cd7c3 /remoting/host
parentc15ed73a0bb7161c52e1fde97bd2bf3e6534d78b (diff)
downloadchromium_src-a91d0513fa16b2e8c48acbaf7a5c18659ab10d07.zip
chromium_src-a91d0513fa16b2e8c48acbaf7a5c18659ab10d07.tar.gz
chromium_src-a91d0513fa16b2e8c48acbaf7a5c18659ab10d07.tar.bz2
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}
Diffstat (limited to 'remoting/host')
-rw-r--r--remoting/host/win/unprivileged_process_delegate.cc2
-rw-r--r--remoting/host/win/wts_session_process_delegate.cc2
2 files changed, 2 insertions, 2 deletions
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