Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: chrome/browser/chromeos/system/device_disabling_manager_default_delegate.cc

Issue 1610823003: Migrate call sites LoginDisplayHostImpl::default_host to LoginDisplayHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-add-supervised-user
Patch Set: Address comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/device_disabling_browsertest.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698