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 23ce9d0f5ddcc84bea401d314706a23442901365..9a689253945a0d33c6497e304d5131f6d594ae42 100644 |
--- a/content/browser/ppapi_plugin_process_host.cc |
+++ b/content/browser/ppapi_plugin_process_host.cc |
@@ -92,12 +92,16 @@ class PpapiPluginSandboxedProcessLauncherDelegate |
} |
#elif defined(OS_POSIX) |
- bool ShouldUseZygote() override { |
+ ZygoteHandle* GetZygote() override { |
const base::CommandLine& browser_command_line = |
*base::CommandLine::ForCurrentProcess(); |
base::CommandLine::StringType plugin_launcher = browser_command_line |
.GetSwitchValueNative(switches::kPpapiPluginLauncher); |
- return !is_broker_ && plugin_launcher.empty(); |
+ if (!is_broker_ && plugin_launcher.empty()) { |
mdempsky
2015/12/22 21:21:33
Nit: It's pretty negligible here, but in general I
Greg K
2016/01/05 21:42:13
Done.
|
+ static ZygoteHandle zygote; |
+ return &zygote; |
+ } |
+ return nullptr; |
} |
base::ScopedFD TakeIpcFd() override { return std::move(ipc_fd_); } |
#endif // OS_WIN |