removes logs and adds webcontentsview init
This commit is contained in:
parent
81be0bc123
commit
6eba509d53
6 changed files with 271 additions and 217 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue