refactor: consolidate WebContents::{Create,New} (#26521)

This commit is contained in:
Jeremy Rose 2020-11-17 14:14:33 -08:00 committed by GitHub
parent a303813d15
commit 92643a5a1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 15 deletions

View file

@ -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);