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

Unified Diff: chrome/browser/component_updater/chrome_component_updater_configurator.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/component_updater/chrome_component_updater_configurator.cc
diff --git a/chrome/browser/component_updater/chrome_component_updater_configurator.cc b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
index ea83a735cc1d7d0f8010511e5689aeb418d62fe1..9a043039da2f5d5b9672e6810c6f7034fdd6f28e 100644
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
@@ -149,9 +149,8 @@ std::string ChromeConfigurator::ExtraRequestParams() const {
std::string ChromeConfigurator::GetDownloadPreference() const {
#if defined(OS_WIN)
- // This group policy is supported only on Windows and only for computers
- // which are joined to a Windows domain.
- return base::win::IsEnrolledToDomain()
+ // This group policy is supported only on Windows and only for enterprises.
+ return base::win::IsEnterpriseUser()
? base::SysWideToUTF8(
GoogleUpdateSettings::GetDownloadPreference())
: std::string("");

Powered by Google App Engine
This is Rietveld 408576698