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

Unified Diff: ash/session/session_controller.h

Issue 2822033002: cros: Use SessionController to enable system tray settings / notifications tray (Closed)
Patch Set: Created 3 years, 8 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
Index: ash/session/session_controller.h
diff --git a/ash/session/session_controller.h b/ash/session/session_controller.h
index 975e2185c461e5e85849fc1acc368ac8e5f8accd..afe6222c77fe5c462d459e8ecdfe70eafbc38e0e 100644
--- a/ash/session/session_controller.h
+++ b/ash/session/session_controller.h
@@ -69,6 +69,12 @@ class ASH_EXPORT SessionController
// Convenience function that returns true if session state is LOGIN_SECONDARY.
bool IsInSecondaryLoginScreen() const;
+ // Returns true if the settings icon should be enabled in the system tray.
+ bool ShouldEnableSettings() const;
+
+ // Returns true if the notification tray should appear.
+ bool ShouldShowNotificationTray() const;
+
// Gets the ash session state.
session_manager::SessionState GetSessionState() const;

Powered by Google App Engine
This is Rietveld 408576698