Add comment about CreateNewGuestWindow origins
This commit is contained in:
parent
9ac2cf0d44
commit
0dff863e30
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ content::SiteInstance* WebViewGuestDelegate::GetOwnerSiteInstance() {
|
|||
|
||||
content::WebContents* WebViewGuestDelegate::CreateNewGuestWindow(
|
||||
const content::WebContents::CreateParams& create_params) {
|
||||
// Code below mirrors what content::WebContentsImpl::CreateNewWindow
|
||||
// does for non-guest sources
|
||||
content::WebContents::CreateParams guest_params(create_params);
|
||||
guest_params.initial_size =
|
||||
embedder_web_contents_->GetContainerBounds().size();
|
||||
|
|
Loading…
Reference in a new issue