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

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: Add uma logging for new api 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/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 2fccab7600c25f879debd3408cc1d674928a4498..a208b02b9d57a50618c85e41a97a2cfc0a43af38 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