Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Issue 2489723005: chromeos: Make system tray audio item observe CrasAudioHandler directly (Closed)

Created:
4 years, 1 month ago by James Cook
Modified:
4 years, 1 month ago
Reviewers:
msw, Yusuke Sato, jennyz
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, sadrul, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -148 lines) Patch
M ash/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
D ash/common/system/chromeos/audio/audio_observer.h View 1 chunk +0 lines, -41 lines 0 comments Download
M ash/common/system/chromeos/audio/tray_audio.h View 1 3 chunks +11 lines, -4 lines 0 comments Download
M ash/common/system/chromeos/audio/tray_audio.cc View 1 2 5 chunks +22 lines, -4 lines 0 comments Download
A ash/common/system/chromeos/audio/tray_audio_unittest.cc View 1 chunk +31 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.h View 3 chunks +0 lines, -11 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.cc View 2 chunks +0 lines, -36 lines 0 comments Download
M ash/common/wm_root_window_controller.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ash/common/wm_root_window_controller.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 chunks +0 lines, -36 lines 0 comments Download
M components/arc/audio/arc_audio_bridge.cc View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
James Cook
jennyz, please take a look.
4 years, 1 month ago (2016-11-09 19:09:32 UTC) #4
jennyz
LGTM. Are you going to merge TrayAudio and TrayAudioChromeOs later?
4 years, 1 month ago (2016-11-09 23:22:05 UTC) #7
James Cook
On 2016/11/09 23:22:05, jennyz wrote: > LGTM. > > Are you going to merge TrayAudio ...
4 years, 1 month ago (2016-11-09 23:27:56 UTC) #8
James Cook
msw, can I get OWNERS for c/b/ui/ash ? yusukes, can I get OWNERS for components/arc ...
4 years, 1 month ago (2016-11-09 23:30:07 UTC) #10
Yusuke Sato
lgtm
4 years, 1 month ago (2016-11-09 23:39:28 UTC) #11
msw
c/b/ui/ash/* lgtm
4 years, 1 month ago (2016-11-09 23:48:36 UTC) #12
jennyz
LGTM with a nit.
4 years, 1 month ago (2016-11-10 23:22:23 UTC) #13
jennyz
On 2016/11/10 23:22:23, jennyz wrote: > LGTM with a nit. Sorry, the nit is not ...
4 years, 1 month ago (2016-11-11 00:07:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2489723005/40001
4 years, 1 month ago (2016-11-11 17:09:08 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-11 19:05:04 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 19:30:28 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8fb49c827b29e822a0d45dd6aa9c77ae71aef16e
Cr-Commit-Position: refs/heads/master@{#431608}

Powered by Google App Engine
This is Rietveld 408576698