| // 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/system/device_disabling_manager_default_delegate.h" |
| |
| #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| #include "chrome/browser/chromeos/login/wizard_controller.h" |
| #include "chrome/browser/lifetime/application_lifetime.h" |
| |
| namespace chromeos { |
| namespace system { |
| |
| DeviceDisablingManagerDefaultDelegate::DeviceDisablingManagerDefaultDelegate() { |
| } |
| |
| void DeviceDisablingManagerDefaultDelegate::RestartToLoginScreen() { |
| chrome::AttemptUserExit(); |
| } |
| |
| void DeviceDisablingManagerDefaultDelegate::ShowDeviceDisabledScreen() { |
| LoginDisplayHost::default_host()->StartWizard( |
| OobeScreen::SCREEN_DEVICE_DISABLED); |
| } |
| |
| } // namespace system |
| } // namespace chromeos |