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

Unified Diff: ash/session/session_controller.h

Issue 2829813002: cros: Move IsUserSupervised and IsUserChild off SystemTrayDelegate (Closed)
Patch Set: review comments 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
« no previous file with comments | « no previous file | ash/session/session_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/session/session_controller.h
diff --git a/ash/session/session_controller.h b/ash/session/session_controller.h
index 5500b410eaa2aa120d25f978bbf2d7b27413b0f6..fa594e1e8afe14234a5ba3f47f194a003c0356d0 100644
--- a/ash/session/session_controller.h
+++ b/ash/session/session_controller.h
@@ -85,6 +85,13 @@ class ASH_EXPORT SessionController
// nullptr if no user session is found for the index.
const mojom::UserSession* GetUserSession(UserIndex index) const;
+ // Returns true if the current user is supervised: has legacy supervised
+ // account or kid account.
+ bool IsUserSupervised() const;
+
+ // Returns true if the current user is a child account.
+ bool IsUserChild() const;
+
// Locks the screen. The locking happens asynchronously.
void LockScreen();
« no previous file with comments | « no previous file | ash/session/session_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698