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

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

Issue 9403010: Add support for kiosk mode on the client. Make sure the settings are written in the lockbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nitty nit. Created 8 years, 10 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/cloud_policy_subsystem.h » ('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 09aeefc3a51acfb203b91726b5858deece2ab5ca..75fb83db56116009e47171bce2ecc62e65c249f5 100644
--- a/chrome/browser/policy/cloud_policy_data_store.cc
+++ b/chrome/browser/policy/cloud_policy_data_store.cc
@@ -33,7 +33,8 @@ CloudPolicyDataStore::CloudPolicyDataStore(
policy_register_type_(policy_register_type),
policy_type_(policy_type),
known_machine_id_(false),
- token_cache_loaded_(false) {}
+ token_cache_loaded_(false),
+ device_mode_(DEVICE_MODE_UNKNOWN) {}
void CloudPolicyDataStore::SetDeviceToken(const std::string& device_token,
bool from_cache) {
@@ -111,6 +112,10 @@ void CloudPolicyDataStore::set_known_machine_id(bool known_machine_id) {
known_machine_id_ = known_machine_id;
}
+void CloudPolicyDataStore::set_device_mode(DeviceMode device_mode) {
+ device_mode_ = device_mode;
+}
+
const std::string& CloudPolicyDataStore::device_token() const {
return device_token_;
}
@@ -160,6 +165,10 @@ bool CloudPolicyDataStore::known_machine_id() const {
return known_machine_id_;
}
+DeviceMode CloudPolicyDataStore::device_mode() const {
+ return device_mode_;
+}
+
#if defined(OS_CHROMEOS)
DeviceStatusCollector*
CloudPolicyDataStore::device_status_collector() {
@@ -170,7 +179,7 @@ void CloudPolicyDataStore::set_device_status_collector(
DeviceStatusCollector* collector) {
device_status_collector_.reset(collector);
}
-#endif
+#endif // OS_CHROMEOS
void CloudPolicyDataStore::AddObserver(
CloudPolicyDataStore::Observer* observer) {
« no previous file with comments | « chrome/browser/policy/cloud_policy_data_store.h ('k') | chrome/browser/policy/cloud_policy_subsystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698