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

Unified Diff: chrome/browser/ui/ash/session_controller_client.h

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/test_system_tray_delegate.cc ('k') | chrome/browser/ui/ash/session_controller_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/session_controller_client.h
diff --git a/chrome/browser/ui/ash/session_controller_client.h b/chrome/browser/ui/ash/session_controller_client.h
index a7e4dc4cd8e32392190d1d8ac103d21c5f7ee346..ca85a87e39c4d9027231179551fbee0072b5dddd 100644
--- a/chrome/browser/ui/ash/session_controller_client.h
+++ b/chrome/browser/ui/ash/session_controller_client.h
@@ -101,6 +101,7 @@ class SessionControllerClient
FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, SendUserSession);
FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, SupervisedUser);
FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, UserPrefsChange);
+ FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, SessionLengthLimit);
// Called when the login profile is ready.
void OnLoginUserProfilePrepared(Profile* profile);
@@ -120,6 +121,9 @@ class SessionControllerClient
// Sends the order of user sessions to ash.
void SendUserSessionOrder();
+ // Sends the session length time limit to ash.
+ void SendSessionLengthLimit();
+
// Binds to the client interface.
mojo::Binding<ash::mojom::SessionControllerClient> binding_;
@@ -140,6 +144,9 @@ class SessionControllerClient
// i.e. they don't much the user session order.
std::vector<std::unique_ptr<PrefChangeRegistrar>> pref_change_registrars_;
+ // Observes changes to Local State prefs.
+ std::unique_ptr<PrefChangeRegistrar> local_state_registrar_;
+
// Used to suppress duplicate IPCs to ash.
ash::mojom::SessionInfoPtr last_sent_session_info_;
ash::mojom::UserSessionPtr last_sent_user_session_;
« no previous file with comments | « ash/test/test_system_tray_delegate.cc ('k') | chrome/browser/ui/ash/session_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698