Remove path for nodeIntgration value of 'disable'
This commit is contained in:
parent
293ca4ef55
commit
daa09ea9e7
1 changed files with 0 additions and 5 deletions
|
@ -97,11 +97,6 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
||||||
// Check if we have node integration specified.
|
// Check if we have node integration specified.
|
||||||
bool node_integration = true;
|
bool node_integration = true;
|
||||||
web_preferences.GetBoolean(options::kNodeIntegration, &node_integration);
|
web_preferences.GetBoolean(options::kNodeIntegration, &node_integration);
|
||||||
// Be compatible with old API of "node-integration" option.
|
|
||||||
std::string old_token;
|
|
||||||
if (web_preferences.GetString(options::kNodeIntegration, &old_token) &&
|
|
||||||
old_token != "disable")
|
|
||||||
node_integration = true;
|
|
||||||
command_line->AppendSwitchASCII(switches::kNodeIntegration,
|
command_line->AppendSwitchASCII(switches::kNodeIntegration,
|
||||||
node_integration ? "true" : "false");
|
node_integration ? "true" : "false");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue