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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client.h

Issue 2371213002: Refactor: Inject StatisticsProvider as a dependency of DeviceCloudPolicyInitializer. (Closed)
Patch Set: Address Maksim's comments. Created 4 years, 3 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 | « chromeos/system/statistics_provider.cc ('k') | components/policy/core/common/cloud/enterprise_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/cloud_policy_client.h
diff --git a/components/policy/core/common/cloud/cloud_policy_client.h b/components/policy/core/common/cloud/cloud_policy_client.h
index 88f11b6c04e60fbb6fd5dae69c440b37bf7edf02..d0ca5399c88ba31e71156f4bd01875e3102a1942 100644
--- a/components/policy/core/common/cloud/cloud_policy_client.h
+++ b/components/policy/core/common/cloud/cloud_policy_client.h
@@ -203,6 +203,9 @@ class POLICY_EXPORT CloudPolicyClient {
// Removes the specified observer.
void RemoveObserver(Observer* observer);
+ const std::string& machine_id() const { return machine_id_; }
+ const std::string& machine_model() const { return machine_model_; }
+
void set_submit_machine_id(bool submit_machine_id) {
submit_machine_id_ = submit_machine_id;
}
@@ -381,12 +384,14 @@ class POLICY_EXPORT CloudPolicyClient {
std::string dm_token_;
DeviceMode device_mode_ = DEVICE_MODE_NOT_SET;
std::string client_id_;
- bool submit_machine_id_ = false;
base::Time last_policy_timestamp_;
int public_key_version_ = -1;
bool public_key_version_valid_ = false;
std::string robot_api_auth_code_;
+ // Whether to send |machine_id_| as part of policy fetch.
+ bool submit_machine_id_ = false;
+
// Information for the latest policy invalidation received.
int64_t invalidation_version_ = 0;
std::string invalidation_payload_;
« no previous file with comments | « chromeos/system/statistics_provider.cc ('k') | components/policy/core/common/cloud/enterprise_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698