Reland: [Global Media Controls] Hide sender page media items while casting
Relanding crrev.com/c/1955086 with a fix for crbug.com/1043484. The only difference from the original patch is in media_notification_service.cc where we now call WebContentsPresentationManager::RemoveObserver() from MediaNotificationService::Session::~Session() before an early exit, so that it always gets called. Original message: When a Cast session is initiated from a web page and the page doesn't get rid of its media session, we generally get duplicate media notification items: one for the sender page and the other from the receiver. This CL hides the former in such cases. Bug: 1038447 Change-Id: I09a074ec4d08a1c19dc21de925c1974b5f9f47dd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013631Reviewed-by:Tommy Steimel <steimel@chromium.org> Reviewed-by:
mark a. foltz <mfoltz@chromium.org> Commit-Queue: Takumi Fujimoto <takumif@chromium.org> Cr-Commit-Position: refs/heads/master@{#734260}
Showing
Please register or sign in to comment