summaryrefslogtreecommitdiffstats
path: root/content/ppapi_plugin/ppapi_plugin_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/ppapi_plugin/ppapi_plugin_main.cc')
-rw-r--r--content/ppapi_plugin/ppapi_plugin_main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/ppapi_plugin/ppapi_plugin_main.cc b/content/ppapi_plugin/ppapi_plugin_main.cc
index 8e1515c..38875b09 100644
--- a/content/ppapi_plugin/ppapi_plugin_main.cc
+++ b/content/ppapi_plugin/ppapi_plugin_main.cc
@@ -10,8 +10,10 @@
#include "build/build_config.h"
#include "content/common/child_process.h"
#include "content/ppapi_plugin/ppapi_thread.h"
+#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/main_function_params.h"
+#include "content/public/plugin/content_plugin_client.h"
#include "ppapi/proxy/proxy_module.h"
#include "ui/base/ui_base_switches.h"
@@ -78,6 +80,11 @@ int PpapiPluginMain(const MainFunctionParams& parameters) {
MessageLoop main_message_loop;
base::PlatformThread::SetName("CrPPAPIMain");
+ // Allow the embedder to perform any necessary per-process initialization
+ // before the sandbox is initialized.
+ if (GetContentClient()->plugin())
+ GetContentClient()->plugin()->PreSandboxInitialization();
+
#if defined(OS_LINUX)
InitializeSandbox();
#endif