refactor: consolidate WebContents::{Create,New} (#26521)
This commit is contained in:
parent
a303813d15
commit
92643a5a1c
5 changed files with 5 additions and 15 deletions
|
@ -79,7 +79,7 @@ BrowserView::BrowserView(gin::Arguments* args,
|
|||
options.Get(options::kWebPreferences, &web_preferences);
|
||||
web_preferences.Set("type", "browserView");
|
||||
gin::Handle<class WebContents> web_contents =
|
||||
WebContents::Create(isolate, web_preferences);
|
||||
WebContents::New(isolate, web_preferences);
|
||||
|
||||
web_contents_.Reset(isolate, web_contents.ToV8());
|
||||
api_web_contents_ = web_contents.get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue