mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@ -468,10 +468,10 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches(
|
|||||||
|
|
||||||
#if defined(OS_LINUX)
|
#if defined(OS_LINUX)
|
||||||
if (process_type == switches::kZygoteProcess &&
|
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.
|
// Force use of the sub-process executable path for the zygote process.
|
||||||
const base::FilePath& subprocess_path =
|
const base::FilePath& subprocess_path =
|
||||||
command_line->GetSwitchValuePath(switches::kBrowserSubprocessPath);
|
browser_cmd.GetSwitchValuePath(switches::kBrowserSubprocessPath);
|
||||||
if (!subprocess_path.empty())
|
if (!subprocess_path.empty())
|
||||||
command_line->SetProgram(subprocess_path);
|
command_line->SetProgram(subprocess_path);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user