Picture-in-Picture: use a singleton to manage open windows.
This should enforce one Picture-in-Picture window per Chrome instance. It should also solve a few edge cases where a WebContents was closed and the associated PictureInPictureWindowController was still around and later used. Note that we may be able to better architecture this. It is a naive design that simply move the code out of browser.cc. Bug: 851775 Change-Id: Ib26ffadd1035f58ffa9bcf475070a469361c9e6e Reviewed-on: https://chromium-review.googlesource.com/1107304 Commit-Queue: Mounir Lamouri <mlamouri@chromium.org> Reviewed-by:apacible <apacible@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#569613}
Showing
Please register or sign in to comment