diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/chrome_dll_main.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ppapi_plugin_process_host.cc | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index 43786c9..867bb01 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -821,6 +821,8 @@ int ChromeMain(int argc, char** argv) { #endif } else if (process_type == switches::kWorkerProcess) { rv = WorkerMain(main_params); + } else if (process_type == switches::kPpapiPluginProcess) { + rv = PpapiPluginMain(main_params); } else { NOTREACHED() << "Unknown process type: " << process_type; } diff --git a/chrome/browser/ppapi_plugin_process_host.cc b/chrome/browser/ppapi_plugin_process_host.cc index 8adbd30..ba47b86 100644 --- a/chrome/browser/ppapi_plugin_process_host.cc +++ b/chrome/browser/ppapi_plugin_process_host.cc @@ -51,11 +51,14 @@ void PpapiPluginProcessHost::Init(const FilePath& path, if (!plugin_launcher.empty()) cmd_line->PrependWrapper(plugin_launcher); + // On posix, having a plugin launcher means we need to use another process + // instead of just forking the zygote. Launch( #if defined(OS_WIN) FilePath(), #elif defined(OS_POSIX) - true, base::environment_vector(), + plugin_launcher.empty(), + base::environment_vector(), #endif cmd_line); } |