refactor: consolidate WebContents::{Create,New} (#26521)
This commit is contained in:
parent
a303813d15
commit
92643a5a1c
5 changed files with 5 additions and 15 deletions
|
@ -113,7 +113,7 @@ gin_helper::WrappableBase* WebContentsView::New(
|
|||
}
|
||||
} else {
|
||||
// Create one if not.
|
||||
web_contents = WebContents::Create(args->isolate(), web_preferences);
|
||||
web_contents = WebContents::New(args->isolate(), web_preferences);
|
||||
}
|
||||
// Constructor call.
|
||||
auto* view = new WebContentsView(args->isolate(), web_contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue