|
|
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
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:
Total messages: 20 (12 generated)
|