refactor: remove WebContents::CreateFrom (#15241)
This commit is contained in:
parent
b3f134de06
commit
94aa0762f0
6 changed files with 85 additions and 51 deletions
|
@ -26,7 +26,7 @@ bool IsWebContents(v8::Isolate* isolate, content::RenderProcessHost* process) {
|
|||
if (!web_contents)
|
||||
return false;
|
||||
|
||||
auto api_web_contents = WebContents::CreateFrom(isolate, web_contents);
|
||||
auto api_web_contents = WebContents::FromOrCreate(isolate, web_contents);
|
||||
auto type = api_web_contents->GetType();
|
||||
return type == WebContents::Type::BROWSER_WINDOW ||
|
||||
type == WebContents::Type::WEB_VIEW;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue