Linux: Force use of the sub-process executable path for the zygote process (issue #980).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1289 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-06-24 19:40:07 +00:00
parent 8c5a5c8ff1
commit 15c1e43a99

View File

@ -468,10 +468,10 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches(
#if defined(OS_LINUX)
if (process_type == switches::kZygoteProcess &&
command_line->HasSwitch(switches::kBrowserSubprocessPath)) {
browser_cmd.HasSwitch(switches::kBrowserSubprocessPath)) {
// Force use of the sub-process executable path for the zygote process.
const base::FilePath& subprocess_path =
command_line->GetSwitchValuePath(switches::kBrowserSubprocessPath);
browser_cmd.GetSwitchValuePath(switches::kBrowserSubprocessPath);
if (!subprocess_path.empty())
command_line->SetProgram(subprocess_path);
}