Chromium Code Reviews| Index: ipc/attachment_broker_privileged_win_unittest.cc |
| diff --git a/ipc/attachment_broker_privileged_win_unittest.cc b/ipc/attachment_broker_privileged_win_unittest.cc |
| index 610921e1039a14202d91a8997e0e3bfb3ce6380f..314252f60fc79a5ab163ba45222cee415b2cd7d1 100644 |
| --- a/ipc/attachment_broker_privileged_win_unittest.cc |
| +++ b/ipc/attachment_broker_privileged_win_unittest.cc |
| @@ -220,6 +220,7 @@ class IPCAttachmentBrokerPrivilegedWinTest : public IPCTestBase { |
| // Takes ownership of |broker|. Has no effect if called after CommonSetUp(). |
| void set_broker(IPC::AttachmentBrokerUnprivilegedWin* broker) { |
| broker_.reset(broker); |
| + IPC::AttachmentBroker::SetGlobal(broker); |
| } |
| void CommonSetUp() { |
| @@ -424,6 +425,7 @@ int CommonPrivilegedProcessMain(OnMessageReceivedCallback callback, |
| // Set up IPC channel. |
| IPC::AttachmentBrokerPrivilegedWin broker; |
| + IPC::AttachmentBroker::SetGlobal(&broker); |
|
Tom Sepez
2015/09/11 15:58:30
This goes out of scope while the process is still
erikchen
2015/09/11 20:16:02
I updated the comment to say:
"""
Each process has
|
| scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
| IPCTestBase::GetChannelName(channel_name), &listener, &broker)); |
| broker.RegisterCommunicationChannel(channel.get()); |