Refactor Android MediaSession UI code.
This is the first refactor that prepares the code for componentization. After further refacrtoring, the next step will be to relocate the relevant code and resources to //components/browser_ui/media_session/. This patch splits MediaSessionTabHelper into two classes, separated by what is componentizable and what is Chrome specific. Most of this class is moved into a new class MediaSessionHelper, which operates on a WebContents rather than a (Chrome) Tab. MediaSessionTabHelper remains as a thin wrapper and implementor of MediaSessionHelper.Delegate. The most substantive change is moving functionality from TabObserver (in MediaSessionTabHelper) to WebContentsObserver (in MediaSessionHelper). Bug: 1066263 Change-Id: I9259a082686c0e0f6b9788bc15a19e887c0e95e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2204964 Commit-Queue: Evan Stade <estade@chromium.org> Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Cr-Commit-Position: refs/heads/master@{#777374}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment