Rename option to contextIsolation

This commit is contained in:
Kevin Sawicki 2016-12-15 13:20:17 -08:00
parent b56bdc83af
commit ad3b837ad5
5 changed files with 20 additions and 15 deletions

View file

@ -121,8 +121,9 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
// Run Electron APIs and preload script in isolated world
bool isolated;
if (web_preferences.GetBoolean("isolated", &isolated) && isolated)
command_line->AppendSwitch(switches::kIsolatedWorld);
if (web_preferences.GetBoolean(options::kContextIsolation, &isolated) &&
isolated)
command_line->AppendSwitch(switches::kContextIsolation);
// --background-color.
std::string color;