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 2e46f2b42865591a92e07580c064ee2e6c1350c7..480a2b4bfa7109a59c5b12d9eb6a68e71091f65b 100644 |
--- a/ipc/attachment_broker_privileged_win_unittest.cc |
+++ b/ipc/attachment_broker_privileged_win_unittest.cc |
@@ -154,6 +154,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() { |
@@ -343,7 +344,7 @@ int CommonPrivilegedProcessMain(OnMessageReceivedCallback callback, |
// Set up IPC channel. |
IPC::AttachmentBrokerPrivilegedWin broker; |
- listener.set_listener(&broker); |
+ IPC::AttachmentBroker::SetGlobal(&broker); |
scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
IPCTestBase::GetChannelName(channel_name), &listener, &broker)); |
broker.RegisterCommunicationChannel(channel.get()); |