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

Unified Diff: ash/session/session_controller.cc

Issue 2864663002: cros: Merge SystemTrayDelegate::GetUserLoginStatus (Closed)
Patch Set: update PaletteTray to exclude ARC kiosk Created 3 years, 7 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/session/session_controller.h ('k') | ash/shelf/wm_shelf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/session/session_controller.cc
diff --git a/ash/session/session_controller.cc b/ash/session/session_controller.cc
index 1e12bb17edc42171f5c4977b42b434a30c7eca74..a4edf2dbaa6627e03a1d2e76f38ef522fe58744f 100644
--- a/ash/session/session_controller.cc
+++ b/ash/session/session_controller.cc
@@ -146,6 +146,15 @@ bool SessionController::IsUserChild() const {
return active_user_type == user_manager::USER_TYPE_CHILD;
}
+bool SessionController::IsKioskSession() const {
+ if (!IsActiveUserSessionStarted())
+ return false;
+
+ user_manager::UserType active_user_type = GetUserSession(0)->type;
+ return active_user_type == user_manager::USER_TYPE_KIOSK_APP ||
+ active_user_type == user_manager::USER_TYPE_ARC_KIOSK_APP;
+}
+
void SessionController::LockScreen() {
if (client_)
client_->RequestLockScreen();
« no previous file with comments | « ash/session/session_controller.h ('k') | ash/shelf/wm_shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698