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..fb0d1e03bf50a664a1838b7642a0b46328f61b87 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), |
+ is_auto_enrollment_(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_is_auto_enrollment(bool is_auto_enrollment) { |
+ is_auto_enrollment_ = is_auto_enrollment; |
+} |
+ |
const std::string& CloudPolicyDataStore::device_token() const { |
return device_token_; |
} |
@@ -151,6 +156,10 @@ UserAffiliation CloudPolicyDataStore::user_affiliation() const { |
return user_affiliation_; |
} |
+bool CloudPolicyDataStore::is_auto_enrollment() const { |
+ return is_auto_enrollment_; |
+} |
+ |
#if defined(OS_CHROMEOS) |
DeviceStatusCollector* |
CloudPolicyDataStore::device_status_collector() { |