fix lint error
This commit is contained in:
parent
b5239754ba
commit
3ba0e288f7
1 changed files with 3 additions and 3 deletions
|
@ -111,12 +111,12 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
||||||
if (IsSandboxed(web_contents)) {
|
if (IsSandboxed(web_contents)) {
|
||||||
// pass `--enable-sandbox` to the renderer so it won't have any node.js
|
// pass `--enable-sandbox` to the renderer so it won't have any node.js
|
||||||
// integration.
|
// integration.
|
||||||
command_line->AppendSwitch(switches::kEnableSandbox);
|
command_line->AppendSwitch(switches::kEnableSandbox);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// Disable renderer sandbox for most of node's functions.
|
// Disable renderer sandbox for most of node's functions.
|
||||||
command_line->AppendSwitch(::switches::kNoSandbox);
|
command_line->AppendSwitch(::switches::kNoSandbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (web_preferences.GetBoolean("nativeWindowOpen", &b) && b)
|
if (web_preferences.GetBoolean("nativeWindowOpen", &b) && b)
|
||||||
command_line->AppendSwitch(switches::kNativeWindowOpen);
|
command_line->AppendSwitch(switches::kNativeWindowOpen);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue