| 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/login_oobe_session_manager_deleg
ate.h" | 5 #include "chrome/browser/chromeos/login/session/login_oobe_session_manager_deleg
ate.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/browser_process_platform_part_chromeos.h" | 9 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
| 10 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | |
| 11 #include "chrome/browser/chromeos/login/login_wizard.h" | 10 #include "chrome/browser/chromeos/login/login_wizard.h" |
| 12 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 11 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 13 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 14 | 13 |
| 15 #if !defined(USE_ATHENA) | |
| 16 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h" | |
| 17 #endif | |
| 18 | |
| 19 namespace chromeos { | 14 namespace chromeos { |
| 20 | 15 |
| 21 LoginOobeSessionManagerDelegate::LoginOobeSessionManagerDelegate() { | 16 LoginOobeSessionManagerDelegate::LoginOobeSessionManagerDelegate() { |
| 22 } | 17 } |
| 23 | 18 |
| 24 LoginOobeSessionManagerDelegate::~LoginOobeSessionManagerDelegate() { | 19 LoginOobeSessionManagerDelegate::~LoginOobeSessionManagerDelegate() { |
| 25 } | 20 } |
| 26 | 21 |
| 27 void LoginOobeSessionManagerDelegate::Start() { | 22 void LoginOobeSessionManagerDelegate::Start() { |
| 28 // State will be defined once out-of-box/login branching is complete. | 23 // State will be defined once out-of-box/login branching is complete. |
| 29 ShowLoginWizard(std::string()); | 24 ShowLoginWizard(std::string()); |
| 30 | 25 |
| 31 #if !defined(USE_ATHENA) | |
| 32 if (KioskModeSettings::Get()->IsKioskModeEnabled()) | |
| 33 InitializeKioskModeScreensaver(); | |
| 34 #endif | |
| 35 | |
| 36 // Reset reboot after update flag when login screen is shown. | 26 // Reset reboot after update flag when login screen is shown. |
| 37 policy::BrowserPolicyConnectorChromeOS* connector = | 27 policy::BrowserPolicyConnectorChromeOS* connector = |
| 38 g_browser_process->platform_part()->browser_policy_connector_chromeos(); | 28 g_browser_process->platform_part()->browser_policy_connector_chromeos(); |
| 39 if (!connector->IsEnterpriseManaged()) { | 29 if (!connector->IsEnterpriseManaged()) { |
| 40 PrefService* local_state = g_browser_process->local_state(); | 30 PrefService* local_state = g_browser_process->local_state(); |
| 41 local_state->ClearPref(prefs::kRebootAfterUpdate); | 31 local_state->ClearPref(prefs::kRebootAfterUpdate); |
| 42 } | 32 } |
| 43 } | 33 } |
| 44 | 34 |
| 45 } // namespace chromeos | 35 } // namespace chromeos |
| OLD | NEW |