Detect updater state for Mac (version, health) and attempt to understand
if Chrome was launched by an enterprise user (domain joined).

Review-Url: https://codereview.chromium.org/2862723002
Cr-Commit-Position: refs/heads/master@{#470622}
diff --git a/components/update_client/updater_state.cc b/components/update_client/updater_state.cc
index 0c8f414..0359881 100644
--- a/components/update_client/updater_state.cc
+++ b/components/update_client/updater_state.cc
@@ -27,16 +27,16 @@
 
 std::unique_ptr<UpdaterState::Attributes> UpdaterState::GetState(
     bool is_machine) {
-#if defined(OS_WIN)
+#if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS))
   UpdaterState updater_state(is_machine);
   updater_state.ReadState();
   return base::MakeUnique<Attributes>(updater_state.BuildAttributes());
 #else
   return nullptr;
-#endif  // OS_WIN
+#endif  // OS_WIN or Mac
 }
 
-#if defined(OS_WIN)
+#if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS))
 void UpdaterState::ReadState() {
   is_enterprise_managed_ = IsEnterpriseManaged();
 
@@ -49,7 +49,7 @@
   update_policy_ = GetUpdatePolicy();
 #endif  // GOOGLE_CHROME_BUILD
 }
-#endif  // OS_WIN
+#endif  // OS_WIN or Mac
 
 UpdaterState::Attributes UpdaterState::BuildAttributes() const {
   Attributes attributes;