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

Unified Diff: chrome/browser/chromeos/settings/install_attributes.cc

Issue 2486813002: Add DeviceADPolicyManager to provide AD policy. (Closed)
Patch Set: Address Bernhard's comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698