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

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

Issue 10628008: If there is a device id use that instead of a new one for re-enrolling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 94ce161d635c782d8fb221f756ae8124028d1bde..a09f1c6444b862d10839a2f56d46606d39c6ca2b 100644
--- a/chrome/browser/policy/cloud_policy_data_store.cc
+++ b/chrome/browser/policy/cloud_policy_data_store.cc
@@ -33,6 +33,7 @@ CloudPolicyDataStore::CloudPolicyDataStore(
policy_register_type_(policy_register_type),
policy_type_(policy_type),
known_machine_id_(false),
+ reregister_(false),
token_cache_loaded_(false),
policy_fetching_enabled_(true),
device_mode_(DEVICE_MODE_PENDING) {}
@@ -122,6 +123,10 @@ void CloudPolicyDataStore::set_device_mode(DeviceMode device_mode) {
device_mode_ = device_mode;
}
+void CloudPolicyDataStore::set_reregister(bool reregister) {
+ reregister_ = reregister;
+}
+
const std::string& CloudPolicyDataStore::device_token() const {
return device_token_;
}
@@ -179,6 +184,10 @@ DeviceMode CloudPolicyDataStore::device_mode() const {
return device_mode_;
}
+bool CloudPolicyDataStore::reregister() const {
+ return reregister_;
+}
+
#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