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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 22914008: Refactor kiosk app launch to be part of login screen UI flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor style fixes Created 7 years, 4 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
Index: chrome/browser/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index f0e2e8be60aa0438781c26a9d4113a6d8ce788d6..114370b5f79433fc2d240d147582617f63f1054b 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -216,14 +216,6 @@ void ExistingUserController::ResumeLogin() {
resume_login_callback_.Reset();
}
-void ExistingUserController::PrepareKioskAppLaunch() {
- // Disable login UI while waiting for the kiosk app launch. There is no
- // balanced UI enable call because this very login screen will not be
- // accessed again. If app is launched, it will be destroyed. If app fails to
- // launch, chrome is restarted to go back to a new login screen.
- login_display_->SetUIEnabled(false);
-}
-
////////////////////////////////////////////////////////////////////////////////
// ExistingUserController, content::NotificationObserver implementation:
//
@@ -635,6 +627,10 @@ void ExistingUserController::Signout() {
NOTREACHED();
}
+void ExistingUserController::LoginAsKioskApp(const std::string& app_id) {
+ host_->StartAppLaunch(app_id);
+}
+
void ExistingUserController::OnConsumerKioskModeCheckCompleted(
KioskAppManager::ConsumerKioskModeStatus status) {
if (status == KioskAppManager::CONSUMER_KIOSK_MODE_CONFIGURABLE)

Powered by Google App Engine
This is Rietveld 408576698