summaryrefslogtreecommitdiffstats
path: root/content/browser/ppapi_plugin_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/ppapi_plugin_process_host.cc')
-rw-r--r--content/browser/ppapi_plugin_process_host.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 4d0213b..655c513 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -172,10 +172,13 @@ PpapiPluginProcessHost::PpapiPluginProcessHost(
permissions_,
host_resolver);
- host_impl_.reset(new BrowserPpapiHostImpl(this, permissions_, info.name,
- profile_data_directory, process_->GetData().id));
+ host_impl_.reset(new BrowserPpapiHostImpl(this, permissions_));
+
+ file_filter_ = new PepperTrustedFileMessageFilter(
+ process_->GetData().id, info.name, profile_data_directory);
process_->GetHost()->AddFilter(filter_.get());
+ process_->GetHost()->AddFilter(file_filter_.get());
process_->GetHost()->AddFilter(host_impl_->message_filter());
GetContentClient()->browser()->DidCreatePpapiPlugin(host_impl_.get());
@@ -187,12 +190,7 @@ PpapiPluginProcessHost::PpapiPluginProcessHost()
PROCESS_TYPE_PPAPI_BROKER, this));
ppapi::PpapiPermissions permissions; // No permissions.
- // The plugin name and profile data directory shouldn't be needed for the
- // broker.
- std::string plugin_name;
- FilePath profile_data_directory;
- host_impl_.reset(new BrowserPpapiHostImpl(this, permissions, plugin_name,
- profile_data_directory, process_->GetData().id));
+ host_impl_.reset(new BrowserPpapiHostImpl(this, permissions));
}
bool PpapiPluginProcessHost::Init(const PepperPluginInfo& info) {