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

Unified Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 2498613003: Add ARC++ kiosk menu items and ability to start kiosk session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 1 month 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: 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 0129aeed3da9a75b5e3c50df87cc3894098fef8e..cfe9d8c109321fb9bf724fb6f6c9ea490af428b0 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
@@ -559,6 +559,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) {
@@ -1385,6 +1387,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",

Powered by Google App Engine
This is Rietveld 408576698