Use web contents type enum and add converter
This commit is contained in:
parent
fc2b5eebc0
commit
c7b2545b1b
3 changed files with 26 additions and 20 deletions
|
@ -26,7 +26,7 @@ bool IsWebContents(v8::Isolate* isolate, content::RenderProcessHost* process) {
|
|||
return false;
|
||||
|
||||
auto api_web_contents = WebContents::CreateFrom(isolate, web_contents);
|
||||
return !api_web_contents->IsRemote();
|
||||
return api_web_contents->GetType() != WebContents::Type::REMOTE;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue