blob: 333ba21b9c07268a9fc7a1d88d5296a8a69fb0cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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/ui/login_display_host_impl.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() {
LoginDisplayHostImpl::default_host()->StartWizard(
WizardController::kDeviceDisabledScreenName);
}
} // namespace system
} // namespace chromeos
|