| 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();
|
|
|