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

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: Make test TSan clean. Created 3 years, 7 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 | « content/browser/linux_ipc_browsertest.cc ('k') | content/browser/renderer_host/sandbox_ipc_linux.h » ('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 5731df87c71d0f4de76657e505412749ca546a1b..f6c7c7153b2f5bd1d591347b16c76e02fe5ab2fd 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1697,6 +1697,13 @@ void RenderProcessHostImpl::AppendRendererCommandLine(
GetContentClient()->browser()->GetApplicationLocale();
command_line->AppendSwitchASCII(switches::kLang, locale);
+ // A non-empty RendererCmdPrefix implies that Zygote is disabled.
+ if (!base::CommandLine::ForCurrentProcess()
+ ->GetSwitchValueNative(switches::kRendererCmdPrefix)
+ .empty()) {
+ command_line->AppendSwitch(switches::kNoZygote);
+ }
+
GetContentClient()->browser()->AppendExtraCommandLineSwitches(command_line,
GetID());
@@ -1840,6 +1847,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kMSEVideoBufferSizeLimit,
switches::kNoReferrers,
switches::kNoSandbox,
+ switches::kNoZygote,
switches::kOverridePluginPowerSaverForTesting,
switches::kPassiveListenersDefault,
switches::kPpapiInProcess,
« no previous file with comments | « content/browser/linux_ipc_browsertest.cc ('k') | content/browser/renderer_host/sandbox_ipc_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698