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

Unified Diff: components/update_client/updater_state.cc

Issue 2581353002: Use the Windows MDM API to check if the machine is being managed. (Closed)
Patch Set: Fix missing rename from enterprise-user to entprise-managed 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/updater_state.cc
diff --git a/components/update_client/updater_state.cc b/components/update_client/updater_state.cc
index 035e6c2f2302ec3e78fc02b1737488c6b81017da..3f531fc77a0401c3a5eb7cdb8da6f66c2f8b5aee 100644
--- a/components/update_client/updater_state.cc
+++ b/components/update_client/updater_state.cc
@@ -15,7 +15,7 @@
namespace update_client {
-const char UpdaterState::kDomainJoined[] = "domainjoined";
+const char UpdaterState::kIsEnterpriseManaged[] = "domainjoined";
grt (UTC plus 2) 2017/02/10 12:12:26 nit: please drop a comment here explaining why the
Roger Tawa OOO till Jul 10th 2017/02/13 20:30:06 I'm currently discussing with omaha folks and I ma
UpdaterState::UpdaterState(bool is_machine) : is_machine_(is_machine) {}
@@ -34,7 +34,7 @@ std::unique_ptr<UpdaterState::Attributes> UpdaterState::GetState(
#if defined(OS_WIN)
void UpdaterState::ReadState() {
- is_joined_to_domain_ = IsJoinedToDomain();
+ is_enterprise_managed_ = IsEnterpriseManaged();
#if defined(GOOGLE_CHROME_BUILD)
updater_name_ = GetUpdaterName();
@@ -50,7 +50,7 @@ void UpdaterState::ReadState() {
UpdaterState::Attributes UpdaterState::BuildAttributes() const {
Attributes attributes;
- attributes[kDomainJoined] = is_joined_to_domain_ ? "1" : "0";
+ attributes[kIsEnterpriseManaged] = is_enterprise_managed_ ? "1" : "0";
attributes["name"] = updater_name_;

Powered by Google App Engine
This is Rietveld 408576698