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

Issue 2360143004: mash: Add SystemTrayClient interface, use to show date settings (Closed)

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

Description

mash: Add SystemTrayClient interface, use to show date settings * Introduce SystemTrayClient in chrome browser. It is similar to SystemTrayDelegateChromeos in that it both observes chrome for state changes and responds to queries from ash. * Chrome browser SystemTrayClient connects to ash SystemTray on startup so it can queue any state changes it sees. * Ash SystemTrayDelegateMus connects to chrome browser SystemTrayClient interface on demand because it has no state to enqueue. * Implement connection error handlers on both sides. * Implement showing the date settings as a demonstration. * Factor code shared between SystemTrayDelegateChromeos and SystemTrayClient into SystemTrayCommon. BUG=644361 TEST=clicking on date in system tray opens date settings, even after closing all chrome browser windows Committed: https://crrev.com/b9ac16b3800c89223de560b769a2db7fc8c912c0 Cr-Commit-Position: refs/heads/master@{#420990}

Patch Set 1 #

Patch Set 2 : tweaks, similarity #

Total comments: 10

Patch Set 3 : format #

Total comments: 8

Patch Set 4 : rebase #

Patch Set 5 : review comments, cleanup #

Patch Set 6 : reparent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -102 lines) Patch
M ash/mus/manifest.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/system_tray_delegate_mus.h View 1 2 3 4 2 chunks +18 lines, -1 line 0 comments Download
M ash/mus/system_tray_delegate_mus.cc View 1 2 3 4 3 chunks +26 lines, -2 lines 0 comments Download
M ash/public/interfaces/system_tray.mojom View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_interface_factory.cc View 1 2 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
A + chrome/browser/ui/ash/system_tray_client.h View 1 2 3 4 1 chunk +23 lines, -8 lines 0 comments Download
A + chrome/browser/ui/ash/system_tray_client.cc View 1 2 3 4 1 chunk +47 lines, -7 lines 0 comments Download
A + chrome/browser/ui/ash/system_tray_common.h View 1 2 3 1 chunk +9 lines, -14 lines 0 comments Download
A chrome/browser/ui/ash/system_tray_common.cc View 1 chunk +23 lines, -0 lines 0 comments Download
D chrome/browser/ui/ash/system_tray_controller_mus.h View 1 chunk +0 lines, -27 lines 0 comments Download
D chrome/browser/ui/ash/system_tray_controller_mus.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
James Cook
sky, please take a look. https://codereview.chromium.org/2360143004/diff/20001/ash/mus/system_tray_delegate_mus.cc File ash/mus/system_tray_delegate_mus.cc (right): https://codereview.chromium.org/2360143004/diff/20001/ash/mus/system_tray_delegate_mus.cc#newcode40 ash/mus/system_tray_delegate_mus.cc:40: system_tray_client_->ShowDateSettings(); Is there a ...
4 years, 3 months ago (2016-09-22 23:19:18 UTC) #4
sky
https://codereview.chromium.org/2360143004/diff/20001/ash/mus/system_tray_delegate_mus.cc File ash/mus/system_tray_delegate_mus.cc (right): https://codereview.chromium.org/2360143004/diff/20001/ash/mus/system_tray_delegate_mus.cc#newcode40 ash/mus/system_tray_delegate_mus.cc:40: system_tray_client_->ShowDateSettings(); How do you know SetClient() has been called ...
4 years, 3 months ago (2016-09-23 16:42:26 UTC) #7
James Cook
sky, please take another look. This patchset is pretty different. I got rid of the ...
4 years, 2 months ago (2016-09-24 00:26:41 UTC) #15
James Cook
One more thing... https://codereview.chromium.org/2360143004/diff/60001/chrome/browser/ui/ash/system_tray_client.h File chrome/browser/ui/ash/system_tray_client.h (right): https://codereview.chromium.org/2360143004/diff/60001/chrome/browser/ui/ash/system_tray_client.h#newcode15 chrome/browser/ui/ash/system_tray_client.h:15: class SystemTrayClient : public ash::mojom::SystemTrayClient, I ...
4 years, 2 months ago (2016-09-24 00:34:37 UTC) #16
sky
https://codereview.chromium.org/2360143004/diff/60001/ash/mus/system_tray_delegate_mus.cc File ash/mus/system_tray_delegate_mus.cc (right): https://codereview.chromium.org/2360143004/diff/60001/ash/mus/system_tray_delegate_mus.cc#newcode42 ash/mus/system_tray_delegate_mus.cc:42: // Check if already connected. optional: IMO this comment ...
4 years, 2 months ago (2016-09-26 15:23:14 UTC) #19
sky
James explained that if the code waited for chrome to connect then it would have ...
4 years, 2 months ago (2016-09-26 16:52:31 UTC) #20
James Cook
tsepez, please take a look at //ash/public/interfaces/system_tray.mojom. https://codereview.chromium.org/2360143004/diff/60001/ash/mus/system_tray_delegate_mus.cc File ash/mus/system_tray_delegate_mus.cc (right): https://codereview.chromium.org/2360143004/diff/60001/ash/mus/system_tray_delegate_mus.cc#newcode42 ash/mus/system_tray_delegate_mus.cc:42: // Check ...
4 years, 2 months ago (2016-09-26 18:01:38 UTC) #25
Tom Sepez
mojom LGTM
4 years, 2 months ago (2016-09-26 19:10:04 UTC) #26
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/2360143004/120001
4 years, 2 months ago (2016-09-26 19:13:06 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 2 months ago (2016-09-26 21:04:44 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 21:07:24 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b9ac16b3800c89223de560b769a2db7fc8c912c0
Cr-Commit-Position: refs/heads/master@{#420990}

Powered by Google App Engine
This is Rietveld 408576698