|
|
chromeos: Convert system tray session length limit to mojo
Chrome and ash run in different processes under mustash so we need to
eliminate ash-to-chrome delegate methods. This eliminates two methods on
ash::SystemTrayDelegate.
Use the SessionController mojom interface to send the session length limit
to ash from Chrome's local state preferences. (The preferences mojo service
does not yet support local state prefs.)
BUG= 712759
TEST=added to ash_unittests, chrome unit_tests, manually set up a managed
device using go/dmstug, set the pref via policy and verify that the menu
item and notification appear as expected
Review-Url: https://codereview.chromium.org/2923083002
Cr-Commit-Position: refs/heads/master@{#477646}
Committed: https://chromium.googlesource.com/chromium/src/+/c934896452fd0d3e518d1ffe77f68e0a25e66b34
Total comments: 23
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+176 lines, -242 lines) |
Patch |
 |
M |
ash/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/public/interfaces/session_controller.mojom
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/session/session_controller.h
|
View
|
1
|
4 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/session/session_controller.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/session/session_observer.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
D |
ash/system/session/session_length_limit_observer.h
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
M |
ash/system/session/tray_session_length_limit.h
|
View
|
|
4 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ash/system/session/tray_session_length_limit.cc
|
View
|
|
5 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ash/system/session/tray_session_length_limit_unittest.cc
|
View
|
1
|
4 chunks |
+36 lines, -26 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray.h
|
View
|
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray.cc
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray_delegate.h
|
View
|
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray_delegate.cc
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray_notifier.h
|
View
|
|
3 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray_notifier.cc
|
View
|
|
2 chunks |
+0 lines, -21 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_system_tray_delegate.h
|
View
|
|
3 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_system_tray_delegate.cc
|
View
|
1
|
3 chunks |
+0 lines, -31 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/session_controller_client.h
|
View
|
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/session_controller_client.cc
|
View
|
1
|
5 chunks |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/session_controller_client_unittest.cc
|
View
|
|
3 chunks |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.h
|
View
|
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
View
|
|
6 chunks |
+0 lines, -66 lines |
0 comments
|
Download
|
Total messages: 20 (14 generated)
|