| Index: components/nacl/broker/nacl_broker_listener.cc
|
| diff --git a/components/nacl/broker/nacl_broker_listener.cc b/components/nacl/broker/nacl_broker_listener.cc
|
| index 84bba866e476152684fac9fa2a4f24b2b7c6777d..658e36792b2fd3ad1592800e3f3d2b250e3ca58e 100644
|
| --- a/components/nacl/broker/nacl_broker_listener.cc
|
| +++ b/components/nacl/broker/nacl_broker_listener.cc
|
| @@ -18,6 +18,7 @@
|
| #include "components/nacl/common/nacl_switches.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/sandbox_init.h"
|
| +#include "ipc/attachment_broker_win.h"
|
| #include "ipc/ipc_channel.h"
|
| #include "ipc/ipc_switches.h"
|
| #include "sandbox/win/src/sandbox_policy.h"
|
| @@ -31,6 +32,7 @@ void SendReply(IPC::Channel* channel, int32 pid, bool result) {
|
| } // namespace
|
|
|
| NaClBrokerListener::NaClBrokerListener() {
|
| + attachment_broker_.reset(new IPC::AttachmentBrokerWin);
|
| }
|
|
|
| NaClBrokerListener::~NaClBrokerListener() {
|
| @@ -40,7 +42,8 @@ void NaClBrokerListener::Listen() {
|
| std::string channel_name =
|
| base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| switches::kProcessChannelID);
|
| - channel_ = IPC::Channel::CreateClient(channel_name, this);
|
| + channel_ =
|
| + IPC::Channel::CreateClient(channel_name, this, attachment_broker_.get());
|
| CHECK(channel_->Connect());
|
| base::MessageLoop::current()->Run();
|
| }
|
|
|