Expose --enable-sandbox command-line switch.

When `--enable-sandbox` is passed, electron will use chromium sandbox to spawn
all renderers, and every new BrowserWindow will automatically have "sandboxed"
passed as a web preference(since the renderer would not work properly
otherwise).
This commit is contained in:
Thiago de Arruda 2016-08-15 08:01:24 -03:00
parent c783ec72bc
commit 1d228446db
2 changed files with 9 additions and 2 deletions

View file

@ -232,6 +232,7 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
// Copy following switches to child process.
static const char* const kCommonSwitchNames[] = {
switches::kStandardSchemes,
switches::kEnableSandbox
};
command_line->CopySwitchesFrom(
*base::CommandLine::ForCurrentProcess(),