Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1512)

Unified Diff: components/nacl/broker/nacl_broker_listener.cc

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/nacl/broker/nacl_broker_listener.h ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « components/nacl/broker/nacl_broker_listener.h ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698