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 2427913003: Use mojo volume interfaces for mash and classic ash. (Closed)

Created:
4 years, 2 months ago by msw
Modified:
4 years, 2 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review), davemoore+watch_chromium.org, Rahul Chaturvedi, Daniel Erat, tbarzic, zel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use mojo volume interfaces for mash and classic ash. Add mojom::VolumeController; remove VolumeControlDelegate. Make AccelleratorController connect to VolumeController. Move UMA recording to ash, instead of Chrome. Update unit tests; check UMA and accelerator history. Move extension code to ExtensionSystemEventObserver. BUG=657126 TEST=Automated; no Chrome OS volume button regressions. R=jamescook@chromium.org,sky@chromium.org,dcheng@chromium.org Committed: https://crrev.com/67f43b078ce358d8b81ef120bfd13a07be8c6eed Cr-Commit-Position: refs/heads/master@{#426622}

Patch Set 1 #

Patch Set 2 : Fix DisallowedAtModalWindow unittests. #

Patch Set 3 : Add connection error handler; fix browser tests. #

Total comments: 10

Patch Set 4 : Address comments. #

Total comments: 2

Patch Set 5 : Use base::MakeUnique. #

Patch Set 6 : Sync and rebase. #

Patch Set 7 : Sync and rebase again. #

Patch Set 8 : Move volume change event observation for extensions. #

Total comments: 4

Patch Set 9 : Address comments. #

Patch Set 10 : Sync and rebase yet again. #

Patch Set 11 : Split volume and system events observers; only hook up volume. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -361 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 4 chunks +29 lines, -29 lines 0 comments Download
M ash/accelerators/accelerator_interactive_uitest_chromeos.cc View 3 chunks +11 lines, -14 lines 0 comments Download
M ash/common/accelerators/accelerator_controller.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M ash/common/accelerators/accelerator_controller.cc View 1 2 5 chunks +40 lines, -19 lines 0 comments Download
M ash/common/system/audio/tray_audio.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/tray/default_system_tray_delegate.h View 2 chunks +0 lines, -6 lines 0 comments Download
M ash/common/system/tray/default_system_tray_delegate.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 3 chunks +1 line, -9 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 1 chunk +0 lines, -7 lines 0 comments Download
D ash/common/system/volume_control_delegate.h View 1 chunk +0 lines, -26 lines 0 comments Download
M ash/common/test/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
D ash/common/test/test_volume_control_delegate.h View 1 chunk +0 lines, -46 lines 0 comments Download
D ash/common/test/test_volume_control_delegate.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 4 chunks +29 lines, -29 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/volume.mojom View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/mash/chrome_mash_content_browser_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/chrome_interface_factory.cc View 1 2 3 4 5 6 7 chunks +15 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/extensions/extension_volume_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/extension_volume_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 4 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc View 1 2 8 chunks +29 lines, -42 lines 0 comments Download
M chrome/browser/ui/ash/volume_controller_chromeos.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -17 lines 0 comments Download
M chrome/browser/ui/ash/volume_controller_chromeos.cc View 1 2 3 4 5 6 7 5 chunks +12 lines, -39 lines 0 comments Download

Messages

Total messages: 63 (44 generated)
msw
Hey James, please take a look; thanks!
4 years, 2 months ago (2016-10-18 23:24:13 UTC) #11
James Cook
LGTM. Nice that this patch is net-negative lines of code. https://codereview.chromium.org/2427913003/diff/60001/ash/accelerators/accelerator_controller_unittest.cc File ash/accelerators/accelerator_controller_unittest.cc (right): https://codereview.chromium.org/2427913003/diff/60001/ash/accelerators/accelerator_controller_unittest.cc#newcode841 ...
4 years, 2 months ago (2016-10-18 23:53:40 UTC) #12
msw
Hey Scott, please take a look at chrome (minus browser/ui). Hey Daniel, please take a ...
4 years, 2 months ago (2016-10-19 15:24:11 UTC) #18
sky
LGTM https://codereview.chromium.org/2427913003/diff/100001/chrome/browser/chromeos/chrome_interface_factory.cc File chrome/browser/chromeos/chrome_interface_factory.cc (right): https://codereview.chromium.org/2427913003/diff/100001/chrome/browser/chromeos/chrome_interface_factory.cc#newcode133 chrome/browser/chromeos/chrome_interface_factory.cc:133: volume_controller_.reset(new VolumeController); MakeUnique if possible.
4 years, 2 months ago (2016-10-19 15:26:39 UTC) #21
dcheng
mojo lgtm
4 years, 2 months ago (2016-10-19 22:24:08 UTC) #28
msw
https://codereview.chromium.org/2427913003/diff/100001/chrome/browser/chromeos/chrome_interface_factory.cc File chrome/browser/chromeos/chrome_interface_factory.cc (right): https://codereview.chromium.org/2427913003/diff/100001/chrome/browser/chromeos/chrome_interface_factory.cc#newcode133 chrome/browser/chromeos/chrome_interface_factory.cc:133: volume_controller_.reset(new VolumeController); On 2016/10/19 15:26:39, sky wrote: > MakeUnique ...
4 years, 2 months ago (2016-10-19 22:36:25 UTC) #29
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/2427913003/140001
4 years, 2 months ago (2016-10-19 22:37:29 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/285517)
4 years, 2 months ago (2016-10-19 23:14:45 UTC) #34
msw
Scott, please take another look at the latest Chrome OS changes. I moved volume change ...
4 years, 2 months ago (2016-10-20 03:08:55 UTC) #36
sky
LGTM https://codereview.chromium.org/2427913003/diff/140002/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2427913003/diff/140002/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode675 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:675: extension_system_event_observer_.reset(new ExtensionSystemEventObserver()); MakeUnique if you can. https://codereview.chromium.org/2427913003/diff/140002/chrome/browser/chromeos/extensions/extension_system_event_observer.cc File ...
4 years, 2 months ago (2016-10-20 15:41:07 UTC) #41
Daniel Erat
replied over email, but given that ExtensionSystemEventObserver seems to have been uninstantiated for more than ...
4 years, 2 months ago (2016-10-20 15:47:00 UTC) #43
msw
+CC tbarzic@ and zelidrag@, regarding this cros extension question. On 2016/10/20 15:47:00, Daniel Erat wrote: ...
4 years, 2 months ago (2016-10-20 16:15:32 UTC) #44
Rahul Chaturvedi
It seems that it is unused in the code and no one seems to know ...
4 years, 2 months ago (2016-10-20 16:56:35 UTC) #50
tbarzic
Yeah, if it isn't actually used (and it hasn't been for a while), it would ...
4 years, 2 months ago (2016-10-20 17:36:52 UTC) #52
dmazzoni
On 2016/10/20 17:36:52, tbarzic wrote: > Yeah, if it isn't actually used (and it hasn't ...
4 years, 2 months ago (2016-10-20 20:33:37 UTC) #55
msw
I moved the volume observer and notifications to a separate class to avoid restoring the ...
4 years, 2 months ago (2016-10-20 21:05:28 UTC) #56
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/2427913003/230001
4 years, 2 months ago (2016-10-20 21:06:18 UTC) #59
commit-bot: I haz the power
Committed patchset #11 (id:230001)
4 years, 2 months ago (2016-10-20 22:43:07 UTC) #61
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:23:37 UTC) #63
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/67f43b078ce358d8b81ef120bfd13a07be8c6eed
Cr-Commit-Position: refs/heads/master@{#426622}

Powered by Google App Engine
This is Rietveld 408576698