Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1021)

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2833973003: Initialize FontConfigIPC when zygote is disabled so font fallback works. (Closed)
Patch Set: Also check for --renderer-cmd-prefix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/renderer_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | content/renderer/renderer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698