| Index: remoting/host/ipc_util_win.cc
|
| diff --git a/remoting/host/ipc_util_win.cc b/remoting/host/ipc_util_win.cc
|
| index 5da5f8264fe1fe7ecf00894b889a766e376a1f59..f7f57a6cb8e6271f9036c68ab1ec4dca8dce7d34 100644
|
| --- a/remoting/host/ipc_util_win.cc
|
| +++ b/remoting/host/ipc_util_win.cc
|
| @@ -59,10 +59,13 @@ bool CreateConnectedIpcChannel(
|
| // Wrap the pipe into an IPC channel.
|
| std::unique_ptr<IPC::ChannelProxy> server(
|
| new IPC::ChannelProxy(listener, io_task_runner));
|
| - IPC::AttachmentBroker::GetGlobal()->RegisterCommunicationChannel(
|
| - server.get(), io_task_runner);
|
| + IPC::AttachmentBroker* broker = IPC::AttachmentBroker::GetGlobal();
|
| + DCHECK(broker) << "No AttachmentBroker registered.";
|
| + if (broker->IsPrivilegedBroker()) {
|
| + broker->RegisterCommunicationChannel(server.get(), io_task_runner);
|
| + }
|
| server->Init(IPC::ChannelHandle(pipe.Get()), IPC::Channel::MODE_SERVER,
|
| - true);
|
| + /*create_pipe_now=*/true);
|
|
|
| // Convert the channel name to the pipe name.
|
| std::string pipe_name(kChromePipeNamePrefix);
|
|
|