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

Issue 2822033002: cros: Use SessionController to enable system tray settings / notifications tray (Closed)

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

Description

cros: Use SessionController to enable system tray settings / notifications tray This eliminates 2 methods from SystemTrayDelegate and makes the system tray work better in mustash. * Rename ShouldShowSettings to ShouldEnableSettings, because the settings gear icon is always visible. * Cache the booleans from the user flow in ash::mojom::UserSession, because these are set once per session * Consolidate the session active/locked/etc. logic in SessionController * Clean up WebNotificationTray, which uses logged in state and should-show state inconsistently. BUG=648964, 665997 TEST=ash_unittests TrayItemTest.*, manual testing of supervised user flow and adding secondary user flow Review-Url: https://codereview.chromium.org/2822033002 Cr-Commit-Position: refs/heads/master@{#465287} Committed: https://chromium.googlesource.com/chromium/src/+/341c0454a9e0c39895d2228e25a9fd57f919e16e

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -100 lines) Patch
M ash/public/interfaces/session_controller.mojom View 1 chunk +8 lines, -0 lines 0 comments Download
M ash/session/session_controller.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ash/session/session_controller.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M ash/system/network/network_state_list_detailed_view.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/system/screen_layout_observer.cc View 3 chunks +4 lines, -29 lines 0 comments Download
M ash/system/tiles/tiles_default_view.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 chunk +0 lines, -6 lines 0 comments Download
M ash/system/tray/system_tray_delegate.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 2 chunks +1 line, -5 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 4 chunks +6 lines, -11 lines 4 comments Download
M ash/test/test_session_controller_client.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_creation_flow.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_creation_flow.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_flow.h View 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_flow.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 2 chunks +0 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (12 generated)
James Cook
xiyuan, please take a look. https://codereview.chromium.org/2822033002/diff/1/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2822033002/diff/1/ash/system/web_notification/web_notification_tray.cc#newcode500 ash/system/web_notification/web_notification_tray.cc:500: return ShouldShowMessageCenter(); This was ...
3 years, 8 months ago (2017-04-17 23:21:13 UTC) #5
xiyuan
lgtm https://codereview.chromium.org/2822033002/diff/1/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2822033002/diff/1/ash/system/web_notification/web_notification_tray.cc#newcode500 ash/system/web_notification/web_notification_tray.cc:500: return ShouldShowMessageCenter(); On 2017/04/17 23:21:13, James Cook wrote: ...
3 years, 8 months ago (2017-04-18 16:26:29 UTC) #8
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/2822033002/1
3 years, 8 months ago (2017-04-18 17:17:00 UTC) #10
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/413958)
3 years, 8 months ago (2017-04-18 17:27:12 UTC) #12
James Cook
tsepez, can I get OWNERS for adding a couple bools to ash/public/interfaces/session_controller.mojom ?
3 years, 8 months ago (2017-04-18 17:36:09 UTC) #14
Tom Sepez
OWNERS LGTM
3 years, 8 months ago (2017-04-18 17:47:35 UTC) #15
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/2822033002/1
3 years, 8 months ago (2017-04-18 17:59:29 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 18:04:31 UTC) #20
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/341c0454a9e0c39895d2228e25a9...

Powered by Google App Engine
This is Rietveld 408576698