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

Issue 2351893002: mash: Fix system tray clock 12/24 hour time setting (Closed)

Created:
4 years, 3 months ago by James Cook
Modified:
4 years, 3 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: Fix system tray clock 12/24 hour time setting The 12 vs. 24 hour time preference comes from chrome browser because it depends on prefs, machine settings, login state, etc. * Add ash.mojom.SystemTray interface * Add SystemTrayControllerMus in //chrome which listens for 12/24 pref updates and sends them to ash over mojo * Add SystemTrayDelegateMus in //ash/mus which listens for time pref updates over mojo and routes them to the system tray * SystemTrayDelegateMus caches the 12/24 preference as it is queried synchronously elsewhere in ash BUG=644361 TEST=open settings > advanced settings, toggle 24 hour clock preference, system tray display updates itself Committed: https://crrev.com/6763ee8aaac990f173b64a17cf0e29b914fc94ce Cr-Commit-Position: refs/heads/master@{#419789}

Patch Set 1 #

Patch Set 2 : tweak #

Total comments: 9

Patch Set 3 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -24 lines) Patch
M ash/mus/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/mus/shell_delegate_mus.cc View 2 chunks +2 lines, -4 lines 0 comments Download
A ash/mus/system_tray_delegate_mus.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A ash/mus/system_tray_delegate_mus.cc View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
M ash/mus/window_manager_application.h View 1 2 4 chunks +15 lines, -9 lines 0 comments Download
M ash/mus/window_manager_application.cc View 1 2 3 chunks +16 lines, -8 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/system_tray.mojom View 1 chunk +14 lines, -0 lines 2 comments Download
M chrome/app/mojo/chrome_manifest.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/system_tray_controller_mus.h View 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/system_tray_controller_mus.cc View 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
James Cook
sky, please take a look. https://codereview.chromium.org/2351893002/diff/20001/ash/mus/window_manager_application.h File ash/mus/window_manager_application.h (right): https://codereview.chromium.org/2351893002/diff/20001/ash/mus/window_manager_application.h#newcode57 ash/mus/window_manager_application.h:57: public shell::InterfaceFactory<ash::mojom::ShelfController>, Are all ...
4 years, 3 months ago (2016-09-19 22:51:38 UTC) #3
sky
https://codereview.chromium.org/2351893002/diff/20001/ash/mus/window_manager_application.cc File ash/mus/window_manager_application.cc (right): https://codereview.chromium.org/2351893002/diff/20001/ash/mus/window_manager_application.cc#newcode181 ash/mus/window_manager_application.cc:181: ash::mojom::SystemTray* system_tray = static_cast<SystemTrayDelegateMus*>( This cast makes me nervous. ...
4 years, 3 months ago (2016-09-19 23:47:52 UTC) #7
James Cook
sky, please take another look. https://codereview.chromium.org/2351893002/diff/20001/ash/mus/window_manager_application.cc File ash/mus/window_manager_application.cc (right): https://codereview.chromium.org/2351893002/diff/20001/ash/mus/window_manager_application.cc#newcode181 ash/mus/window_manager_application.cc:181: ash::mojom::SystemTray* system_tray = static_cast<SystemTrayDelegateMus*>( ...
4 years, 3 months ago (2016-09-20 01:52:11 UTC) #10
sky
LGTM https://codereview.chromium.org/2351893002/diff/20001/ash/public/interfaces/system_tray.mojom File ash/public/interfaces/system_tray.mojom (right): https://codereview.chromium.org/2351893002/diff/20001/ash/public/interfaces/system_tray.mojom#newcode8 ash/public/interfaces/system_tray.mojom:8: interface SystemTray { On 2016/09/20 01:52:11, James Cook ...
4 years, 3 months ago (2016-09-20 02:45:17 UTC) #11
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/2351893002/40001
4 years, 3 months ago (2016-09-20 16:07:34 UTC) #15
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/262979)
4 years, 3 months ago (2016-09-20 16:16:05 UTC) #17
James Cook
tsepez, can I get mojom security OWNERS for ash/public/interfaces/system_tray.mojom ?
4 years, 3 months ago (2016-09-20 16:29:10 UTC) #19
Tom Sepez
mojom LGTM. https://codereview.chromium.org/2351893002/diff/40001/ash/public/interfaces/system_tray.mojom File ash/public/interfaces/system_tray.mojom (right): https://codereview.chromium.org/2351893002/diff/40001/ash/public/interfaces/system_tray.mojom#newcode11 ash/public/interfaces/system_tray.mojom:11: SetUse24HourClock(bool use_24_hour); nit: do you want an ...
4 years, 3 months ago (2016-09-20 16:34:42 UTC) #20
James Cook
https://codereview.chromium.org/2351893002/diff/40001/ash/public/interfaces/system_tray.mojom File ash/public/interfaces/system_tray.mojom (right): https://codereview.chromium.org/2351893002/diff/40001/ash/public/interfaces/system_tray.mojom#newcode11 ash/public/interfaces/system_tray.mojom:11: SetUse24HourClock(bool use_24_hour); On 2016/09/20 16:34:42, Tom Sepez wrote: > ...
4 years, 3 months ago (2016-09-20 16:42:57 UTC) #21
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/2351893002/40001
4 years, 3 months ago (2016-09-20 16:43:25 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-20 16:48:36 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 16:50:41 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6763ee8aaac990f173b64a17cf0e29b914fc94ce
Cr-Commit-Position: refs/heads/master@{#419789}

Powered by Google App Engine
This is Rietveld 408576698