removes logs and adds webcontentsview init

This commit is contained in:
gellert 2016-07-25 15:55:00 +02:00
parent 81be0bc123
commit 6eba509d53
6 changed files with 271 additions and 217 deletions

View file

@ -305,13 +305,13 @@ WebContents::WebContents(v8::Isolate* isolate,
web_contents = content::WebContents::Create(params);
} else {
content::WebContents::CreateParams params(session->browser_context());
params.view = new OffScreenWebContentsView();
params.delegate_view = (content::RenderViewHostDelegateView *)params.view;
web_contents = content::WebContents::Create(params);
}
content::WebContentsImpl* impl =
reinterpret_cast<content::WebContentsImpl*>(web_contents);
impl->SetView(new OffScreenWebContentsView);
Observe(web_contents);
InitWithWebContents(web_contents, session->browser_context());