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

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: rebased Created 3 years, 10 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 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 d2e0d02510603c09e7a298e5134bd467ab045a1d..48ceeea700d79b43bddc1f3b37821f0f613a829d 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
@@ -246,13 +246,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_managed = base::win::IsEnterpriseManaged();
if (first_call) {
UMA_HISTOGRAM_BOOLEAN("Settings.TrackedPreferencesNoEnforcementOnDomain",
- is_enrolled_to_domain);
+ is_managed);
first_call = false;
}
- if (is_enrolled_to_domain)
+ if (is_managed)
return GROUP_NO_ENFORCEMENT;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698