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

Unified Diff: chrome/browser/policy/cloud_policy_data_store.cc

Issue 9233008: Flag auto-enrollment register requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 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/cloud_policy_data_store.h ('k') | chrome/browser/policy/device_token_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_data_store.cc
diff --git a/chrome/browser/policy/cloud_policy_data_store.cc b/chrome/browser/policy/cloud_policy_data_store.cc
index c44d0304ccab64d730a3eff1745e3789dabe1af0..09aeefc3a51acfb203b91726b5858deece2ab5ca 100644
--- a/chrome/browser/policy/cloud_policy_data_store.cc
+++ b/chrome/browser/policy/cloud_policy_data_store.cc
@@ -32,6 +32,7 @@ CloudPolicyDataStore::CloudPolicyDataStore(
: user_affiliation_(USER_AFFILIATION_NONE),
policy_register_type_(policy_register_type),
policy_type_(policy_type),
+ known_machine_id_(false),
token_cache_loaded_(false) {}
void CloudPolicyDataStore::SetDeviceToken(const std::string& device_token,
@@ -106,6 +107,10 @@ void CloudPolicyDataStore::set_user_affiliation(
user_affiliation_ = user_affiliation;
}
+void CloudPolicyDataStore::set_known_machine_id(bool known_machine_id) {
+ known_machine_id_ = known_machine_id;
+}
+
const std::string& CloudPolicyDataStore::device_token() const {
return device_token_;
}
@@ -151,6 +156,10 @@ UserAffiliation CloudPolicyDataStore::user_affiliation() const {
return user_affiliation_;
}
+bool CloudPolicyDataStore::known_machine_id() const {
+ return known_machine_id_;
+}
+
#if defined(OS_CHROMEOS)
DeviceStatusCollector*
CloudPolicyDataStore::device_status_collector() {
« no previous file with comments | « chrome/browser/policy/cloud_policy_data_store.h ('k') | chrome/browser/policy/device_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698