Index: content/browser/ppapi_plugin_process_host.cc |
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc |
index 7da9abdbcfb039afbbeb982705f6a6945b1b354a..c80ceee9a735a9a2eb566c3d99365876464f6be9 100644 |
--- a/content/browser/ppapi_plugin_process_host.cc |
+++ b/content/browser/ppapi_plugin_process_host.cc |
@@ -141,6 +141,9 @@ PpapiPluginProcessHost::PpapiPluginProcessHost() |
: is_broker_(true) { |
process_.reset(new BrowserChildProcessHostImpl( |
content::PROCESS_TYPE_PPAPI_BROKER, this)); |
+ |
+ ppapi::PpapiPermissions permissions; // No permissions. |
+ host_impl_ = new content::BrowserPpapiHostImpl(this, permissions); |
} |
bool PpapiPluginProcessHost::Init(const content::PepperPluginInfo& info) { |
@@ -243,6 +246,7 @@ void PpapiPluginProcessHost::RequestPluginChannel(Client* client) { |
} |
void PpapiPluginProcessHost::OnProcessLaunched() { |
+ host_impl_->set_plugin_process_handle(process_->GetHandle()); |
} |
bool PpapiPluginProcessHost::OnMessageReceived(const IPC::Message& msg) { |