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

Unified Diff: chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_manager_delegate.cc

Issue 363613004: [cros] Define session_manager component with SessionManager base class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/session/kiosk_auto_launcher_session_manager_delegate.cc
diff --git a/chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_manager_delegate.cc b/chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_manager_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5acb88b5592da42494e6fb213ff94bcf3283a45a
--- /dev/null
+++ b/chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_manager_delegate.cc
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_manager_delegate.h"
+
+#include "base/logging.h"
+#include "chrome/browser/chromeos/login/login_wizard.h"
+#include "chrome/browser/chromeos/login/wizard_controller.h"
+#include "chromeos/dbus/dbus_thread_manager.h"
+#include "chromeos/dbus/session_manager_client.h"
+
+namespace chromeos {
+
+KioskAutoLauncherSessionManagerDelegate::
+ KioskAutoLauncherSessionManagerDelegate() {
+}
+
+KioskAutoLauncherSessionManagerDelegate::
+ ~KioskAutoLauncherSessionManagerDelegate() {
+}
+
+void KioskAutoLauncherSessionManagerDelegate::Start() {
+ // Kiosk app launcher starts with login state.
+ session_manager_->SetSessionState(
+ session_manager::SessionManager::SESSION_STATE_LOGIN_PRIMARY);
+
+ ShowLoginWizard(chromeos::WizardController::kAppLaunchSplashScreenName);
+
+ // Login screen is skipped but 'login-prompt-visible' signal is still needed.
+ VLOG(1) << "Kiosk app auto launch >> login-prompt-visible";
+ DBusThreadManager::Get()->GetSessionManagerClient()->EmitLoginPromptVisible();
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698