Store InspectableWebContents instead of InspectableWebContentsView in NativeBrowserView

This commit is contained in:
Birunthan Mohanathas 2018-03-19 09:50:30 +02:00
parent 6b80865bfe
commit 61160ff9e5
7 changed files with 30 additions and 20 deletions

View file

@ -68,8 +68,8 @@ void BrowserView::Init(v8::Isolate* isolate,
web_contents_.Reset(isolate, web_contents.ToV8());
api_web_contents_ = web_contents.get();
view_.reset(NativeBrowserView::Create(
api_web_contents_->managed_web_contents()->GetView()));
view_.reset(
NativeBrowserView::Create(api_web_contents_->managed_web_contents()));
InitWith(isolate, wrapper);
}