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

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: 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: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index 0abcbb273c3f8a2ebd7e5d88127be9bb6fd2258d..42a2235082aced11055372f92d91039da181e9c4 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -137,11 +137,12 @@ 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::kIsEnterpriseManaged)) {
base::StringAppendF(
&request, " %s=\"%s\"", // domainjoined
- UpdaterState::kDomainJoined,
- (*updater_state_attributes)[UpdaterState::kDomainJoined].c_str());
+ UpdaterState::kIsEnterpriseManaged,
+ (*updater_state_attributes)[UpdaterState::kIsEnterpriseManaged]
+ .c_str());
}
base::StringAppendF(&request, ">");
@@ -167,7 +168,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::kIsEnterpriseManaged) {
base::StringAppendF(&request, " %s=\"%s\"", attr.first.c_str(),
attr.second.c_str());
}

Powered by Google App Engine
This is Rietveld 408576698