| Index: remoting/host/remoting_me2me_host.cc
|
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
|
| index 9004846aac9a4949d73879419ac0ae4160746a35..a80ef55b04ccd02ee409911c4d40f500a6f1d17d 100644
|
| --- a/remoting/host/remoting_me2me_host.cc
|
| +++ b/remoting/host/remoting_me2me_host.cc
|
| @@ -461,6 +461,9 @@
|
| // Accessed on the UI thread.
|
| scoped_ptr<IPC::ChannelProxy> daemon_channel_;
|
|
|
| + // AttachmentBroker for |daemon_channel_|.
|
| + scoped_ptr<IPC::AttachmentBrokerUnprivileged> attachment_broker_;
|
| +
|
| // Owned as |desktop_environment_factory_|.
|
| DesktopSessionConnector* desktop_session_connector_ = nullptr;
|
| #endif // defined(REMOTING_MULTI_PROCESS)
|
| @@ -542,10 +545,11 @@
|
| this,
|
| context_->network_task_runner());
|
|
|
| - IPC::AttachmentBrokerUnprivileged::CreateBrokerIfNeeded();
|
| - IPC::AttachmentBroker* broker = IPC::AttachmentBroker::GetGlobal();
|
| - if (broker && !broker->IsPrivilegedBroker())
|
| - broker->RegisterBrokerCommunicationChannel(daemon_channel_.get());
|
| + attachment_broker_ = IPC::AttachmentBrokerUnprivileged::CreateBroker();
|
| + if (attachment_broker_) {
|
| + attachment_broker_->DesignateBrokerCommunicationChannel(
|
| + daemon_channel_.get());
|
| + }
|
|
|
| #else // !defined(REMOTING_MULTI_PROCESS)
|
| if (cmd_line->HasSwitch(kHostConfigSwitchName)) {
|
| @@ -927,9 +931,7 @@
|
| policy_watcher_.reset();
|
|
|
| #if defined(REMOTING_MULTI_PROCESS)
|
| - IPC::AttachmentBroker* broker = IPC::AttachmentBroker::GetGlobal();
|
| - if (broker && !broker->IsPrivilegedBroker())
|
| - broker->DeregisterBrokerCommunicationChannel(daemon_channel_.get());
|
| + attachment_broker_.reset();
|
| daemon_channel_.reset();
|
| #endif // defined(REMOTING_MULTI_PROCESS)
|
|
|
|
|