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

Issue 2552483002: mash: Have chrome set itself as a controller interface for changing volume (Closed)

Created:
4 years ago by James Cook
Modified:
4 years ago
Reviewers:
Tom Sepez, msw, xiyuan
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Have chrome set itself as a controller interface for changing volume This eliminates a case where ash was directly connecting out to Chrome. * Add ash::mojom::AcceleratorController interface and use to set the ash::mojom::VolumeController * Rename volume controller files to match class names. chrome/browser/ui/ash is chromeos-only these days so the _chromeos filenames aren't needed. * Add ash_util::GetAshServiceName() to return "ash" vs. "content_browser" based on mash vs. classic ash BUG=670789 TEST=ash_unittests, browser_tests, manually change volume with F9/F10 TBR=xiyuan@chromium.org Committed: https://crrev.com/7e0a04e949287e6ea20e5d2be9fe8a168ac0ae7b Cr-Commit-Position: refs/heads/master@{#436766}

Patch Set 1 #

Patch Set 2 : similarity 30 #

Patch Set 3 : rebase #

Total comments: 15

Patch Set 4 : rebase #

Patch Set 5 : review comments #

Total comments: 4

Patch Set 6 : BUILD.gn typo #

Patch Set 7 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -450 lines) Patch
M ash/common/accelerators/accelerator_controller.h View 1 2 3 4 5 chunks +16 lines, -7 lines 0 comments Download
M ash/common/accelerators/accelerator_controller.cc View 1 2 3 4 5 chunks +15 lines, -20 lines 0 comments Download
M ash/common/mojo_interface_factory.cc View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M ash/mus/manifest.json View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + ash/public/interfaces/accelerator_controller.mojom View 1 2 3 4 1 chunk +9 lines, -10 lines 0 comments Download
M ash/public/interfaces/volume.mojom View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_interface_factory.cc View 4 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/ash_util.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_util.cc View 1 chunk +14 lines, -0 lines 0 comments Download
A + chrome/browser/ui/ash/volume_controller.h View 1 2 3 4 1 chunk +8 lines, -9 lines 0 comments Download
A + chrome/browser/ui/ash/volume_controller.cc View 1 2 3 4 3 chunks +18 lines, -8 lines 0 comments Download
A + chrome/browser/ui/ash/volume_controller_browsertest.cc View 5 chunks +6 lines, -12 lines 0 comments Download
D chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc View 1 chunk +0 lines, -253 lines 0 comments Download
D chrome/browser/ui/ash/volume_controller_chromeos.h View 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/browser/ui/ash/volume_controller_chromeos.cc View 1 chunk +0 lines, -83 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (27 generated)
James Cook
msw, please take a look.
4 years ago (2016-12-02 23:46:28 UTC) #3
msw
One comment worth sharing before I review the rest. https://codereview.chromium.org/2552483002/diff/40001/ash/common/accelerators/accelerator_controller.h File ash/common/accelerators/accelerator_controller.h (right): https://codereview.chromium.org/2552483002/diff/40001/ash/common/accelerators/accelerator_controller.h#newcode44 ash/common/accelerators/accelerator_controller.h:44: ...
4 years ago (2016-12-03 00:26:43 UTC) #9
msw
Yeah, the majority of my comments are about naming. https://codereview.chromium.org/2552483002/diff/40001/ash/common/accelerators/accelerator_controller.h File ash/common/accelerators/accelerator_controller.h (right): https://codereview.chromium.org/2552483002/diff/40001/ash/common/accelerators/accelerator_controller.h#newcode194 ash/common/accelerators/accelerator_controller.h:194: ...
4 years ago (2016-12-05 20:15:09 UTC) #10
James Cook
https://codereview.chromium.org/2552483002/diff/40001/ash/public/interfaces/volume.mojom File ash/public/interfaces/volume.mojom (right): https://codereview.chromium.org/2552483002/diff/40001/ash/public/interfaces/volume.mojom#newcode7 ash/public/interfaces/volume.mojom:7: // Implemented by ash. For now, used to delegate ...
4 years ago (2016-12-05 20:25:49 UTC) #11
msw
https://codereview.chromium.org/2552483002/diff/40001/ash/public/interfaces/volume.mojom File ash/public/interfaces/volume.mojom (right): https://codereview.chromium.org/2552483002/diff/40001/ash/public/interfaces/volume.mojom#newcode7 ash/public/interfaces/volume.mojom:7: // Implemented by ash. For now, used to delegate ...
4 years ago (2016-12-05 20:27:00 UTC) #12
James Cook
msw, please take another look. https://codereview.chromium.org/2552483002/diff/40001/ash/common/accelerators/accelerator_controller.h File ash/common/accelerators/accelerator_controller.h (right): https://codereview.chromium.org/2552483002/diff/40001/ash/common/accelerators/accelerator_controller.h#newcode44 ash/common/accelerators/accelerator_controller.h:44: NON_EXPORTED_BASE(public mojom::Volume) { On ...
4 years ago (2016-12-06 19:23:57 UTC) #15
msw
lgtm with just one comment nit/q https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json File ash/mus/manifest.json (right): https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json#newcode7 ash/mus/manifest.json:7: // See also ...
4 years ago (2016-12-06 19:43:57 UTC) #18
James Cook
https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json File ash/mus/manifest.json (right): https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json#newcode7 ash/mus/manifest.json:7: // See also chrome_content_browser_manifest_overlay.json for classic ash On 2016/12/06 ...
4 years ago (2016-12-06 20:11:53 UTC) #21
msw
https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json File ash/mus/manifest.json (right): https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json#newcode7 ash/mus/manifest.json:7: // See also chrome_content_browser_manifest_overlay.json for classic ash On 2016/12/06 ...
4 years ago (2016-12-06 20:13:29 UTC) #22
James Cook
tsepez, can I get OWNERS for mojoms and manifests? https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json File ash/mus/manifest.json (right): https://codereview.chromium.org/2552483002/diff/80001/ash/mus/manifest.json#newcode7 ash/mus/manifest.json:7: ...
4 years ago (2016-12-06 20:19:15 UTC) #27
Tom Sepez
lgtm
4 years ago (2016-12-06 22:28:31 UTC) #31
James Cook
TBR xiyuan for deleting some code from chrome/browser/chromeos/chrome_interface_factory.cc
4 years ago (2016-12-06 22:34:26 UTC) #34
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/2552483002/120001
4 years ago (2016-12-06 22:35:35 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-06 22:54:46 UTC) #40
commit-bot: I haz the power
4 years ago (2016-12-06 22:57:01 UTC) #42
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7e0a04e949287e6ea20e5d2be9fe8a168ac0ae7b
Cr-Commit-Position: refs/heads/master@{#436766}

Powered by Google App Engine
This is Rietveld 408576698