| 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.h" | 5 #include "chrome/browser/chromeos/system/device_disabling_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/prefs/pref_service.h" | |
| 11 #include "base/values.h" | 10 #include "base/values.h" |
| 12 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/browser_process_platform_part.h" | 12 #include "chrome/browser/browser_process_platform_part.h" |
| 14 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 13 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 15 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 14 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 16 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" | 15 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
| 17 #include "chrome/browser/chromeos/policy/server_backed_device_state.h" | 16 #include "chrome/browser/chromeos/policy/server_backed_device_state.h" |
| 18 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 19 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
| 20 #include "chromeos/settings/cros_settings_names.h" | 19 #include "chromeos/settings/cros_settings_names.h" |
| 21 #include "chromeos/settings/cros_settings_provider.h" | 20 #include "chromeos/settings/cros_settings_provider.h" |
| 22 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 21 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 22 #include "components/prefs/pref_service.h" |
| 23 #include "components/user_manager/user_manager.h" | 23 #include "components/user_manager/user_manager.h" |
| 24 | 24 |
| 25 namespace chromeos { | 25 namespace chromeos { |
| 26 namespace system { | 26 namespace system { |
| 27 | 27 |
| 28 DeviceDisablingManager::Observer::~Observer() { | 28 DeviceDisablingManager::Observer::~Observer() { |
| 29 } | 29 } |
| 30 | 30 |
| 31 DeviceDisablingManager::Delegate::~Delegate() { | 31 DeviceDisablingManager::Delegate::~Delegate() { |
| 32 } | 32 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 // Cache the enrollment domain. | 221 // Cache the enrollment domain. |
| 222 enrollment_domain_ = browser_policy_connector_->GetEnterpriseDomain(); | 222 enrollment_domain_ = browser_policy_connector_->GetEnterpriseDomain(); |
| 223 | 223 |
| 224 // If no session or login is in progress, show the device disabled screen. | 224 // If no session or login is in progress, show the device disabled screen. |
| 225 delegate_->ShowDeviceDisabledScreen(); | 225 delegate_->ShowDeviceDisabledScreen(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 } // namespace system | 228 } // namespace system |
| 229 } // namespace chromeos | 229 } // namespace chromeos |
| OLD | NEW |