chrome: win: Fix taskbar grouping of PiP and DevTools windows (fixes #3641)

This commit is contained in:
Marshall Greenblatt
2024-02-06 13:55:01 -05:00
parent da3899d142
commit 5dc3cc13e7
5 changed files with 46 additions and 1 deletions

View File

@@ -426,6 +426,12 @@ void ChromeBrowserDelegate::WindowFullscreenStateChanged() {
#endif
}
bool ChromeBrowserDelegate::HasViewsHostedOpener() const {
DCHECK(browser_->is_type_picture_in_picture() ||
browser_->is_type_devtools());
return opener_host_ && opener_host_->is_views_hosted();
}
void ChromeBrowserDelegate::WebContentsCreated(
content::WebContents* source_contents,
int opener_render_process_id,