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