diff options
Diffstat (limited to 'content/browser/ppapi_broker_process_host.cc')
-rw-r--r-- | content/browser/ppapi_broker_process_host.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/content/browser/ppapi_broker_process_host.cc b/content/browser/ppapi_broker_process_host.cc index 387f943..9f94a67 100644 --- a/content/browser/ppapi_broker_process_host.cc +++ b/content/browser/ppapi_broker_process_host.cc @@ -36,7 +36,14 @@ bool PpapiBrokerProcessHost::Init(const PepperPluginInfo& info) { CommandLine::StringType plugin_launcher = browser_command_line.GetSwitchValueNative(switches::kPpapiPluginLauncher); - FilePath exe_path = ChildProcessHost::GetChildPath(plugin_launcher.empty()); +#if defined(OS_LINUX) + int flags = plugin_launcher.empty() ? ChildProcessHost::CHILD_ALLOW_SELF : + ChildProcessHost::CHILD_NORMAL; +#else + int flags = ChildProcessHost::CHILD_NORMAL; +#endif + + FilePath exe_path = ChildProcessHost::GetChildPath(flags); if (exe_path.empty()) return false; |