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

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

Issue 2371213002: Refactor: Inject StatisticsProvider as a dependency of DeviceCloudPolicyInitializer. (Closed)
Patch Set: 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
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 d2e3f8775256a9297ce8dfa6522cd9f0c9c77bf0..638b79f1c77af369d3bd5724bbc9560da45c988c 100644
--- a/components/policy/core/common/cloud/cloud_policy_client.h
+++ b/components/policy/core/common/cloud/cloud_policy_client.h
@@ -200,6 +200,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;
}
@@ -378,12 +381,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.
Thiemo Nagel 2016/09/27 16:09:06 On the occasion, add a comment to clarify the role
+ bool submit_machine_id_ = false;
+
// Information for the latest policy invalidation received.
int64_t invalidation_version_ = 0;
std::string invalidation_payload_;

Powered by Google App Engine
This is Rietveld 408576698