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

Unified Diff: components/update_client/utils.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: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index 6af11aebf1834417eeeb16a72619146c24e01e42..2d296bda922064a4b812030300a19e1fe8d757e1 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -134,11 +134,11 @@ std::string BuildProtocolRequest(
base::StringAppendF(&request, " dlpref=\"%s\"",
download_preference.c_str());
if (updater_state_attributes &&
- updater_state_attributes->count(UpdaterState::kDomainJoined)) {
+ updater_state_attributes->count(UpdaterState::kIsEnterpriseUser)) {
base::StringAppendF(
&request, " %s=\"%s\"", // domainjoined
- UpdaterState::kDomainJoined,
- (*updater_state_attributes)[UpdaterState::kDomainJoined].c_str());
+ UpdaterState::kIsEnterpriseUser,
+ (*updater_state_attributes)[UpdaterState::kIsEnterpriseUser].c_str());
}
base::StringAppendF(&request, ">");
@@ -164,7 +164,7 @@ std::string BuildProtocolRequest(
if (updater_state_attributes) {
base::StringAppendF(&request, "<updater");
for (const auto& attr : *updater_state_attributes) {
- if (attr.first != UpdaterState::kDomainJoined) {
+ if (attr.first != UpdaterState::kIsEnterpriseUser) {
base::StringAppendF(&request, " %s=\"%s\"", attr.first.c_str(),
attr.second.c_str());
}
« components/update_client/updater_state.cc ('K') | « components/update_client/updater_state_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698