build: add enable_remote_module build flag (#19821)
This commit is contained in:
parent
8bf74164e2
commit
11cd0db86b
32 changed files with 585 additions and 497 deletions
|
@ -117,10 +117,12 @@ void RendererClientBase::DidCreateScriptContext(
|
|||
gin_helper::Dictionary global(context->GetIsolate(), context->Global());
|
||||
global.SetHidden("contextId", context_id);
|
||||
|
||||
#if BUILDFLAG(ENABLE_REMOTE_MODULE)
|
||||
auto* command_line = base::CommandLine::ForCurrentProcess();
|
||||
bool enableRemoteModule =
|
||||
command_line->HasSwitch(switches::kEnableRemoteModule);
|
||||
global.SetHidden("enableRemoteModule", enableRemoteModule);
|
||||
#endif
|
||||
}
|
||||
|
||||
void RendererClientBase::AddRenderBindings(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue