Chromium Code Reviews
Descriptionchromeos: Make system tray audio item observe CrasAudioHandler directly
For mustash the chrome browser process will not be able to directly access
code in ash (e.g. WmShell). This CL reduces chrome's dependency on ash
in SystemTrayDelegateChromeos by having the ash TrayAudio class observe
CrasAudioHandler directly.
This also allows one extra layer of observers (ash::AudioObserver) to be
deleted.
WmRootWindowController now exposes SystemTray because ARC++ needs to show
the volume popup sometimes. That has to happen on all monitors, so TrayAudio
needs to be able to iterate through all SystemTrays.
BUG=661247, 647412
TEST=added to ash_unittests, also modified the code to trigger the volume
popup manually and tested at the login screen with an external display, also
tested on device with ARC++ and Netflix app
Committed: https://crrev.com/8fb49c827b29e822a0d45dd6aa9c77ae71aef16e
Cr-Commit-Position: refs/heads/master@{#431608}
Patch Set 1 #Patch Set 2 : comment #Patch Set 3 : rebase #Messages
Total messages: 20 (9 generated)
|