| Index: chrome/browser/chromeos/settings/install_attributes.cc
|
| diff --git a/chrome/browser/chromeos/settings/install_attributes.cc b/chrome/browser/chromeos/settings/install_attributes.cc
|
| index 50eb6581119fbda4f044f0a1301bfafdab15fed0..6de49adf71959784cb221052901907bab2c55a81 100644
|
| --- a/chrome/browser/chromeos/settings/install_attributes.cc
|
| +++ b/chrome/browser/chromeos/settings/install_attributes.cc
|
| @@ -317,7 +317,7 @@ void InstallAttributes::OnReadImmutableAttributes(
|
| callback.Run(LOCK_SUCCESS);
|
| }
|
|
|
| -bool InstallAttributes::IsEnterpriseDevice() const {
|
| +bool InstallAttributes::IsEnterpriseManaged() const {
|
| if (!device_locked_) {
|
| return false;
|
| }
|
| @@ -325,6 +325,20 @@ bool InstallAttributes::IsEnterpriseDevice() const {
|
| registration_mode_ == policy::DEVICE_MODE_ENTERPRISE_AD;
|
| }
|
|
|
| +bool InstallAttributes::IsActiveDirectoryManaged() const {
|
| + if (!device_locked_) {
|
| + return false;
|
| + }
|
| + return registration_mode_ == policy::DEVICE_MODE_ENTERPRISE_AD;
|
| +}
|
| +
|
| +bool InstallAttributes::IsCloudManaged() const {
|
| + if (!device_locked_) {
|
| + return false;
|
| + }
|
| + return registration_mode_ == policy::DEVICE_MODE_ENTERPRISE;
|
| +}
|
| +
|
| bool InstallAttributes::IsConsumerKioskDeviceWithAutoLaunch() {
|
| return device_locked_ &&
|
| registration_mode_ == policy::DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH;
|
|
|