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

Unified Diff: chrome/browser/policy/cloud_policy_client.h

Issue 10928036: Implement Chrome OS device enrollment on the new cloud policy stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CloudPolicyClient error handling. Created 8 years, 2 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 | « chrome/browser/policy/browser_policy_connector.h ('k') | chrome/browser/policy/cloud_policy_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_client.h
diff --git a/chrome/browser/policy/cloud_policy_client.h b/chrome/browser/policy/cloud_policy_client.h
index 43e18198f951eec3d0e61de1e2ed53c76c0bbee1..0ebfcd00128ad063e2283208e7efafc74fe188a7 100644
--- a/chrome/browser/policy/cloud_policy_client.h
+++ b/chrome/browser/policy/cloud_policy_client.h
@@ -131,6 +131,11 @@ class CloudPolicyClient {
// Whether the client is registered with the device management service.
bool is_registered() const { return !dm_token_.empty(); }
+ const std::string& dm_token() const { return dm_token_; }
+
+ // The device mode as received in the registration request.
+ DeviceMode device_mode() const { return device_mode_; }
+
// The policy response as obtained by the last request to the cloud. This
// policy blob hasn't gone through verification, so its contents cannot be
// trusted. Use CloudPolicyStore::policy() and CloudPolicyStore::policy_map()
@@ -178,6 +183,7 @@ class CloudPolicyClient {
const PolicyScope scope_;
std::string dm_token_;
+ DeviceMode device_mode_;
std::string client_id_;
bool submit_machine_id_;
base::Time last_policy_timestamp_;
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.h ('k') | chrome/browser/policy/cloud_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698