refactor: implement isRemoteModuleEnabled via getLastWebPreferences() (#19220)

This commit is contained in:
Milan Burda 2019-08-29 00:57:03 +02:00 committed by Jeremy Apthorp
parent 04debd5890
commit 01fdb80f7c
9 changed files with 13 additions and 30 deletions

View file

@ -119,7 +119,7 @@ void RendererClientBase::DidCreateScriptContext(
auto* command_line = base::CommandLine::ForCurrentProcess();
bool enableRemoteModule =
!command_line->HasSwitch(switches::kDisableRemoteModule);
command_line->HasSwitch(switches::kEnableRemoteModule);
global.SetHidden("enableRemoteModule", enableRemoteModule);
}