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

Unified Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 2581353002: Use the Windows MDM API to check if the machine is being managed. (Closed)
Patch Set: Fix components tests Created 4 years 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/prefs/chrome_pref_service_factory.cc
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc
index 0c761e6d9efbe545b39e813f7863a1adb353abfa..4fa645f02ce902ca053b4011c2757d2bb714df8f 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
@@ -264,13 +264,13 @@ SettingsEnforcementGroup GetSettingsEnforcementGroup() {
# if defined(OS_WIN)
if (!g_disable_domain_check_for_testing) {
static bool first_call = true;
- static const bool is_enrolled_to_domain = base::win::IsEnrolledToDomain();
+ static const bool is_enterprise_user = base::win::IsEnterpriseUser();
if (first_call) {
UMA_HISTOGRAM_BOOLEAN("Settings.TrackedPreferencesNoEnforcementOnDomain",
- is_enrolled_to_domain);
+ is_enterprise_user);
first_call = false;
}
- if (is_enrolled_to_domain)
+ if (is_enterprise_user)
return GROUP_NO_ENFORCEMENT;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698