Chromium Code Reviews| Index: content/browser/renderer_host/render_process_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
| index 1884d92a11831b77c0089f967ba8a5d4a29a1460..f40114b2235dec735acd1e4f344ebd6bf2ddd9bd 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -1654,6 +1654,13 @@ void RenderProcessHostImpl::AppendRendererCommandLine( |
| GetContentClient()->browser()->GetApplicationLocale(); |
| command_line->AppendSwitchASCII(switches::kLang, locale); |
| + // A non-empty RendererCmdPrefix implies that Zygote is disabled. |
|
jam
2017/05/05 00:21:22
this is only when --no-zygote is specified right?
|
| + if (!base::CommandLine::ForCurrentProcess() |
| + ->GetSwitchValueNative(switches::kRendererCmdPrefix) |
| + .empty()) { |
| + command_line->AppendSwitch(switches::kNoZygote); |
| + } |
| + |
| GetContentClient()->browser()->AppendExtraCommandLineSwitches(command_line, |
| GetID()); |
| @@ -1795,6 +1802,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
| switches::kMSEVideoBufferSizeLimit, |
| switches::kNoReferrers, |
| switches::kNoSandbox, |
| + switches::kNoZygote, |
| switches::kOverridePluginPowerSaverForTesting, |
| switches::kPassiveListenersDefault, |
| switches::kPpapiInProcess, |