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

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 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
« no previous file with comments | « components/update_client/updater_state.h ('k') | components/update_client/updater_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/updater_state.cc
diff --git a/components/update_client/updater_state.cc b/components/update_client/updater_state.cc
index 0e588bfe7b17c09a3c511454456ed29d7da252dc..503780ad9b42e012c664c0b6060f05674012deb1 100644
--- a/components/update_client/updater_state.cc
+++ b/components/update_client/updater_state.cc
@@ -14,7 +14,7 @@
namespace update_client {
-const char UpdaterState::kDomainJoined[] = "domainjoined";
+const char UpdaterState::kIsEnterpriseUser[] = "domainjoined";
Roger Tawa OOO till Jul 10th 2016/12/16 21:00:53 I changed the name of the constant but not the val
Georges Khalil 2017/02/09 14:59:57 I think you are right, that it is persisted. But I
UpdaterState::UpdaterState(bool is_machine) : is_machine_(is_machine) {}
@@ -33,7 +33,7 @@ std::unique_ptr<UpdaterState::Attributes> UpdaterState::GetState(
#if defined(OS_WIN)
void UpdaterState::ReadState() {
- is_joined_to_domain_ = IsJoinedToDomain();
+ is_enterprise_user_ = IsEnterpriseUser();
#if defined(GOOGLE_CHROME_BUILD)
updater_name_ = GetUpdaterName();
@@ -49,7 +49,7 @@ void UpdaterState::ReadState() {
UpdaterState::Attributes UpdaterState::BuildAttributes() const {
Attributes attributes;
- attributes[kDomainJoined] = is_joined_to_domain_ ? "1" : "0";
+ attributes[kIsEnterpriseUser] = is_enterprise_user_ ? "1" : "0";
attributes["name"] = updater_name_;
« no previous file with comments | « components/update_client/updater_state.h ('k') | components/update_client/updater_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698