Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
index faad07f758a9973a2eacf4079addf8fb234fc3c0..65b03082ce6fc78a0e0bd9be9a0e2c502cad52da 100644 |
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
@@ -564,6 +564,8 @@ void SigninScreenHandler::RegisterMessages() { |
// This message is sent by the kiosk app menu, but is handled here |
// so we can tell the delegate to launch the app. |
AddCallback("launchKioskApp", &SigninScreenHandler::HandleLaunchKioskApp); |
+ AddCallback("launchArcKioskApp", |
+ &SigninScreenHandler::HandleLaunchArcKioskApp); |
} |
void SigninScreenHandler::Show(const LoginScreenContext& context) { |
@@ -1400,6 +1402,13 @@ void SigninScreenHandler::HandleLaunchKioskApp(const AccountId& app_account_id, |
delegate_->Login(context, specifics); |
} |
+void SigninScreenHandler::HandleLaunchArcKioskApp( |
+ const AccountId& app_account_id) { |
+ UserContext context(user_manager::USER_TYPE_ARC_KIOSK_APP, app_account_id); |
+ if (delegate_) |
+ delegate_->Login(context, SigninSpecifics()); |
+} |
+ |
void SigninScreenHandler::HandleGetTouchViewState() { |
if (max_mode_delegate_) { |
CallJS("login.AccountPickerScreen.setTouchViewState", |