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

Unified Diff: content/renderer/npapi/plugin_channel_host.cc

Issue 1292263003: ipc: Use a global for the process's attachment broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_message2
Patch Set: Comments from avi. Created 5 years, 3 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 | « content/renderer/npapi/plugin_channel_host.h ('k') | content/renderer/npapi/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/npapi/plugin_channel_host.cc
diff --git a/content/renderer/npapi/plugin_channel_host.cc b/content/renderer/npapi/plugin_channel_host.cc
index 86ea9032e4b87ce73e3686ba39b5bb828adf233a..d552ff871976d9db45c20dc77a23fc441c0dbf11 100644
--- a/content/renderer/npapi/plugin_channel_host.cc
+++ b/content/renderer/npapi/plugin_channel_host.cc
@@ -60,13 +60,11 @@ bool* PluginChannelHost::GetRemoveTrackingFlag() {
// static
PluginChannelHost* PluginChannelHost::GetPluginChannelHost(
const IPC::ChannelHandle& channel_handle,
- base::SingleThreadTaskRunner* ipc_task_runner,
- IPC::AttachmentBroker* broker) {
+ base::SingleThreadTaskRunner* ipc_task_runner) {
PluginChannelHost* result =
static_cast<PluginChannelHost*>(NPChannelBase::GetChannel(
channel_handle, IPC::Channel::MODE_CLIENT, ClassFactory,
- ipc_task_runner, true, ChildProcess::current()->GetShutDownEvent(),
- broker));
+ ipc_task_runner, true, ChildProcess::current()->GetShutDownEvent()));
return result;
}
@@ -78,10 +76,8 @@ PluginChannelHost::~PluginChannelHost() {
bool PluginChannelHost::Init(base::SingleThreadTaskRunner* ipc_task_runner,
bool create_pipe_now,
- base::WaitableEvent* shutdown_event,
- IPC::AttachmentBroker* broker) {
- return NPChannelBase::Init(ipc_task_runner, create_pipe_now, shutdown_event,
- broker);
+ base::WaitableEvent* shutdown_event) {
+ return NPChannelBase::Init(ipc_task_runner, create_pipe_now, shutdown_event);
}
int PluginChannelHost::GenerateRouteID() {
« no previous file with comments | « content/renderer/npapi/plugin_channel_host.h ('k') | content/renderer/npapi/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698