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

Unified Diff: components/update_client/utils.cc

Issue 2710713004: Revert "Use the Windows MDM API to check if the machine is being managed." (Closed)
Patch Set: 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
« no previous file with comments | « components/update_client/updater_state_win.cc ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index e96f5ffbf33fe8e24cde687a6552a1a77b8cc1c0..0abcbb273c3f8a2ebd7e5d88127be9bb6fd2258d 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -137,12 +137,11 @@ std::string BuildProtocolRequest(
base::StringAppendF(&request, " dlpref=\"%s\"",
download_preference.c_str());
if (updater_state_attributes &&
- updater_state_attributes->count(UpdaterState::kIsEnterpriseManaged)) {
+ updater_state_attributes->count(UpdaterState::kDomainJoined)) {
base::StringAppendF(
&request, " %s=\"%s\"", // domainjoined
- UpdaterState::kIsEnterpriseManaged,
- (*updater_state_attributes)[UpdaterState::kIsEnterpriseManaged]
- .c_str());
+ UpdaterState::kDomainJoined,
+ (*updater_state_attributes)[UpdaterState::kDomainJoined].c_str());
}
base::StringAppendF(&request, ">");
@@ -168,7 +167,7 @@ std::string BuildProtocolRequest(
if (updater_state_attributes) {
base::StringAppendF(&request, "<updater");
for (const auto& attr : *updater_state_attributes) {
- if (attr.first != UpdaterState::IsEnterpriseManaged) {
+ if (attr.first != UpdaterState::kDomainJoined) {
base::StringAppendF(&request, " %s=\"%s\"", attr.first.c_str(),
attr.second.c_str());
}
« no previous file with comments | « components/update_client/updater_state_win.cc ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698