refactor: implement isRemoteModuleEnabled via getLastWebPreferences() (#19220)
This commit is contained in:
parent
04debd5890
commit
01fdb80f7c
9 changed files with 13 additions and 30 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue