GMC: Remove item when tab is closed
This CL makes |MediaToolbarButtonController::Session| a |WebContentsObserver| so that we get notified when a tab is closed. This allows us to immediately remove a notification and hide the toolbar icon when a tab is closed instead of freezing it. Bug: 994509 Change-Id: I751e3c8a8c0cc696984a9581b7f9dbfe39ed69e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1793235Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Commit-Queue: Tommy Steimel <steimel@chromium.org> Cr-Commit-Position: refs/heads/master@{#695377}
Showing
Please register or sign in to comment