| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_mana
ger_delegate.h" | 5 #include "chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_init
ializer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chromeos/login/login_wizard.h" | 8 #include "chrome/browser/chromeos/login/login_wizard.h" |
| 9 #include "chrome/browser/chromeos/login/wizard_controller.h" | 9 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 10 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
| 11 #include "chromeos/dbus/session_manager_client.h" | 11 #include "chromeos/dbus/session_manager_client.h" |
| 12 #include "components/session_manager/core/session_manager.h" |
| 12 | 13 |
| 13 namespace chromeos { | 14 namespace chromeos { |
| 14 | 15 |
| 15 KioskAutoLauncherSessionManagerDelegate:: | 16 KioskAutoLauncherSessionInitializer::KioskAutoLauncherSessionInitializer() {} |
| 16 KioskAutoLauncherSessionManagerDelegate() { | |
| 17 } | |
| 18 | 17 |
| 19 KioskAutoLauncherSessionManagerDelegate:: | 18 KioskAutoLauncherSessionInitializer::~KioskAutoLauncherSessionInitializer() {} |
| 20 ~KioskAutoLauncherSessionManagerDelegate() { | |
| 21 } | |
| 22 | 19 |
| 23 void KioskAutoLauncherSessionManagerDelegate::Start() { | 20 void KioskAutoLauncherSessionInitializer::Start() { |
| 24 // Kiosk app launcher starts with login state. | 21 // Kiosk app launcher starts with login state. |
| 25 session_manager_->SetSessionState( | 22 session_manager::SessionManager::Get()->SetSessionState( |
| 26 session_manager::SessionState::LOGIN_PRIMARY); | 23 session_manager::SessionState::LOGIN_PRIMARY); |
| 27 | 24 |
| 28 ShowLoginWizard(chromeos::WizardController::kAppLaunchSplashScreenName); | 25 ShowLoginWizard(chromeos::WizardController::kAppLaunchSplashScreenName); |
| 29 | 26 |
| 30 // Login screen is skipped but 'login-prompt-visible' signal is still needed. | 27 // Login screen is skipped but 'login-prompt-visible' signal is still needed. |
| 31 VLOG(1) << "Kiosk app auto launch >> login-prompt-visible"; | 28 VLOG(1) << "Kiosk app auto launch >> login-prompt-visible"; |
| 32 DBusThreadManager::Get()->GetSessionManagerClient()->EmitLoginPromptVisible(); | 29 DBusThreadManager::Get()->GetSessionManagerClient()->EmitLoginPromptVisible(); |
| 33 } | 30 } |
| 34 | 31 |
| 35 } // namespace chromeos | 32 } // namespace chromeos |
| OLD | NEW |