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

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: rebase 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698