refactor: remove WebContents::CreateFrom (#15241)
This commit is contained in:
parent
b3f134de06
commit
94aa0762f0
6 changed files with 85 additions and 51 deletions
|
@ -29,9 +29,9 @@ AtomNavigationThrottle::WillRedirectRequest() {
|
|||
}
|
||||
|
||||
auto api_contents =
|
||||
atom::api::WebContents::CreateFrom(v8::Isolate::GetCurrent(), contents);
|
||||
atom::api::WebContents::From(v8::Isolate::GetCurrent(), contents);
|
||||
if (api_contents.IsEmpty()) {
|
||||
NOTREACHED();
|
||||
// No need to emit any event if the WebContents is not available in JS.
|
||||
return PROCEED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue