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

Unified Diff: content/renderer/pepper/pepper_broker_impl.cc

Issue 10378057: Broker out PPAPI handle duplication (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: content/renderer/pepper/pepper_broker_impl.cc
===================================================================
--- content/renderer/pepper/pepper_broker_impl.cc (revision 136613)
+++ content/renderer/pepper/pepper_broker_impl.cc (working copy)
@@ -55,7 +55,6 @@
}
bool PepperBrokerDispatcherWrapper::Init(
- base::ProcessHandle broker_process_handle,
const IPC::ChannelHandle& channel_handle) {
if (channel_handle.name.empty())
return false;
@@ -68,7 +67,7 @@
dispatcher_delegate_.reset(new PepperProxyChannelDelegateImpl);
dispatcher_.reset(
- new ppapi::proxy::BrokerHostDispatcher(broker_process_handle));
+ new ppapi::proxy::BrokerHostDispatcher());
if (!dispatcher_->InitBrokerWithChannel(dispatcher_delegate_.get(),
channel_handle,
@@ -191,11 +190,10 @@
}
void PepperBrokerImpl::OnBrokerChannelConnected(
- base::ProcessHandle broker_process_handle,
const IPC::ChannelHandle& channel_handle) {
scoped_ptr<PepperBrokerDispatcherWrapper> dispatcher(
new PepperBrokerDispatcherWrapper);
- if (dispatcher->Init(broker_process_handle, channel_handle)) {
+ if (dispatcher->Init(channel_handle)) {
dispatcher_.reset(dispatcher.release());
// Process all pending channel requests from the plugins.
« no previous file with comments | « content/renderer/pepper/pepper_broker_impl.h ('k') | content/renderer/pepper/pepper_broker_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698