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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_mana ger_delegate.h"
6
7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/login/login_wizard.h"
9 #include "chrome/browser/chromeos/login/wizard_controller.h"
10 #include "chromeos/dbus/dbus_thread_manager.h"
11 #include "chromeos/dbus/session_manager_client.h"
12
13 namespace chromeos {
14
15 KioskAutoLauncherSessionManagerDelegate::
16 KioskAutoLauncherSessionManagerDelegate() {
17 }
18
19 KioskAutoLauncherSessionManagerDelegate::
20 ~KioskAutoLauncherSessionManagerDelegate() {
21 }
22
23 void KioskAutoLauncherSessionManagerDelegate::Start() {
24 // Kiosk app launcher starts with login state.
25 session_manager_->SetSessionState(
26 session_manager::SESSION_STATE_LOGIN_PRIMARY);
27
28 ShowLoginWizard(chromeos::WizardController::kAppLaunchSplashScreenName);
29
30 // Login screen is skipped but 'login-prompt-visible' signal is still needed.
31 VLOG(1) << "Kiosk app auto launch >> login-prompt-visible";
32 DBusThreadManager::Get()->GetSessionManagerClient()->EmitLoginPromptVisible();
33 }
34
35 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698