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

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: Address review comments 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..9ac75ffaa9e097def387a7a8f81f020a923349ef 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::IsEnterpriseManaged()
? base::SysWideToUTF8(
GoogleUpdateSettings::GetDownloadPreference())
: std::string("");
sky 2017/02/15 21:27:15 std::string("") -> std::string()
Roger Tawa OOO till Jul 10th 2017/02/17 19:20:13 Done.

Powered by Google App Engine
This is Rietveld 408576698