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/system/device_disabling_manager_default_delega
te.h" | 5 #include "chrome/browser/chromeos/system/device_disabling_manager_default_delega
te.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 7 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
8 #include "chrome/browser/chromeos/login/wizard_controller.h" | 8 #include "chrome/browser/chromeos/login/wizard_controller.h" |
9 #include "chrome/browser/lifetime/application_lifetime.h" | 9 #include "chrome/browser/lifetime/application_lifetime.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 namespace system { | 12 namespace system { |
13 | 13 |
14 DeviceDisablingManagerDefaultDelegate::DeviceDisablingManagerDefaultDelegate() { | 14 DeviceDisablingManagerDefaultDelegate::DeviceDisablingManagerDefaultDelegate() { |
15 } | 15 } |
16 | 16 |
17 void DeviceDisablingManagerDefaultDelegate::RestartToLoginScreen() { | 17 void DeviceDisablingManagerDefaultDelegate::RestartToLoginScreen() { |
18 chrome::AttemptUserExit(); | 18 chrome::AttemptUserExit(); |
19 } | 19 } |
20 | 20 |
21 void DeviceDisablingManagerDefaultDelegate::ShowDeviceDisabledScreen() { | 21 void DeviceDisablingManagerDefaultDelegate::ShowDeviceDisabledScreen() { |
22 LoginDisplayHost::default_host()->StartWizard( | 22 LoginDisplayHost::default_host()->StartWizard( |
23 WizardController::kDeviceDisabledScreenName); | 23 OobeScreen::SCREEN_DEVICE_DISABLED); |
24 } | 24 } |
25 | 25 |
26 } // namespace system | 26 } // namespace system |
27 } // namespace chromeos | 27 } // namespace chromeos |
OLD | NEW |