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

Issue 2563643003: mash: Change the MediaDelegate to a Media{Controller,Client}. (Closed)

Created:
4 years ago by Elliot Glaysher
Modified:
4 years ago
Reviewers:
Tom Sepez, James Cook, sky
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)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Mojoify the MediaDelegate interface. Instead of a MediaDelegate returned by the ShellDelegate, we now have a MediaController on the ash side, which receives a MediaClient from the chrome side at startup. This also makes minor changes to the interface to send information with a notification instead of having ash try to read the information back after notification. BUG=647409 Committed: https://crrev.com/6a2d7f260d8725344218710b439396c36b8a0f03 Cr-Commit-Position: refs/heads/master@{#438046}

Patch Set 1 #

Patch Set 2 : Actually implement the mojo Bind() and json files. #

Patch Set 3 : Merge w/ ToT #

Total comments: 22

Patch Set 4 : jamescook comments #

Total comments: 2

Patch Set 5 : Comment fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -458 lines) Patch
M ash/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/accelerators/accelerator_controller.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A ash/common/media_controller.h View 1 1 chunk +65 lines, -0 lines 0 comments Download
A ash/common/media_controller.cc View 1 chunk +55 lines, -0 lines 0 comments Download
D ash/common/media_delegate.h View 1 chunk +0 lines, -40 lines 0 comments Download
M ash/common/mojo_interface_factory.cc View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M ash/common/shell_delegate.h View 2 chunks +0 lines, -4 lines 0 comments Download
D ash/common/system/chromeos/media_security/media_capture_observer.h View 1 chunk +0 lines, -21 lines 0 comments Download
M ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M ash/common/system/chromeos/media_security/multi_profile_media_tray_item_unittest.cc View 3 chunks +26 lines, -6 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.h View 3 chunks +0 lines, -7 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.cc View 2 chunks +0 lines, -16 lines 0 comments Download
M ash/common/system/user/user_card_view.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/common/system/user/user_card_view.cc View 1 2 3 12 chunks +29 lines, -40 lines 0 comments Download
M ash/common/wm_shell.h View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 chunks +2 lines, -1 line 0 comments Download
M ash/mus/manifest.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/shell_delegate_mus.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/shell_delegate_mus.cc View 3 chunks +0 lines, -25 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/media.mojom View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 3 chunks +0 lines, -22 lines 0 comments Download
M ash/test/test_shell_delegate.h View 3 chunks +0 lines, -3 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 4 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/chrome_new_window_client.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 2 chunks +0 lines, -5 lines 0 comments Download
A chrome/browser/ui/ash/media_client.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/media_client.cc View 1 2 3 4 1 chunk +202 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/media_delegate_chromeos.h View 1 2 3 1 chunk +0 lines, -39 lines 0 comments Download
M chrome/browser/ui/ash/media_delegate_chromeos.cc View 1 2 3 1 chunk +0 lines, -169 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc View 2 chunks +2 lines, -2 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 +3 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (34 generated)
Elliot Glaysher
4 years ago (2016-12-09 20:14:13 UTC) #16
James Cook
Can you also expand the CL description a little bit? https://codereview.chromium.org/2563643003/diff/40001/ash/common/system/user/user_card_view.cc File ash/common/system/user/user_card_view.cc (left): https://codereview.chromium.org/2563643003/diff/40001/ash/common/system/user/user_card_view.cc#oldcode51 ...
4 years ago (2016-12-09 23:42:14 UTC) #19
Elliot Glaysher
Also updated the description. https://codereview.chromium.org/2563643003/diff/40001/ash/common/system/user/user_card_view.cc File ash/common/system/user/user_card_view.cc (left): https://codereview.chromium.org/2563643003/diff/40001/ash/common/system/user/user_card_view.cc#oldcode51 ash/common/system/user/user_card_view.cc:51: #if defined(OS_CHROMEOS) On 2016/12/09 23:42:13, ...
4 years ago (2016-12-10 00:45:11 UTC) #24
James Cook
LGTM! https://codereview.chromium.org/2563643003/diff/60001/chrome/browser/ui/ash/media_client.cc File chrome/browser/ui/ash/media_client.cc (right): https://codereview.chromium.org/2563643003/diff/60001/chrome/browser/ui/ash/media_client.cc#newcode168 chrome/browser/ui/ash/media_client.cc:168: // TODO(erg): Ash don't have stable user indexes. ...
4 years ago (2016-12-12 16:54:46 UTC) #27
Elliot Glaysher
sky: owners stamp tsepez: mojom
4 years ago (2016-12-12 19:19:01 UTC) #30
Tom Sepez
mojom LGTM, the flow is ash -> client.
4 years ago (2016-12-12 19:40:23 UTC) #32
sky
LGTM
4 years ago (2016-12-12 21:05:02 UTC) #33
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/2563643003/80001
4 years ago (2016-12-12 21:56:35 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/197576)
4 years ago (2016-12-13 01:54:46 UTC) #39
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/2563643003/80001
4 years ago (2016-12-13 03:12:42 UTC) #41
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-13 03:55:12 UTC) #44
commit-bot: I haz the power
4 years ago (2016-12-13 03:57:41 UTC) #46
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6a2d7f260d8725344218710b439396c36b8a0f03
Cr-Commit-Position: refs/heads/master@{#438046}

Powered by Google App Engine
This is Rietveld 408576698