refactor: implement isRemoteModuleEnabled via getLastWebPreferences() (#19220)
This commit is contained in:
parent
04debd5890
commit
01fdb80f7c
9 changed files with 13 additions and 30 deletions
|
@ -562,9 +562,6 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
|||
|
||||
content::WebContents* web_contents = GetWebContentsFromProcessID(process_id);
|
||||
if (web_contents) {
|
||||
if (web_contents->GetVisibleURL().SchemeIs("devtools")) {
|
||||
command_line->AppendSwitch(switches::kDisableRemoteModule);
|
||||
}
|
||||
auto* web_preferences = WebContentsPreferences::From(web_contents);
|
||||
if (web_preferences)
|
||||
web_preferences->AppendCommandLineSwitches(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue