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

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, update copyright year 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
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() {

Powered by Google App Engine
This is Rietveld 408576698