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

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 comments and added more tests. 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
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..d582e787d75ad8da0ba199acf8ebb240b6a1ab29 100644
--- a/chrome/browser/policy/cloud_policy_data_store.cc
+++ b/chrome/browser/policy/cloud_policy_data_store.cc
@@ -161,6 +161,16 @@ bool CloudPolicyDataStore::known_machine_id() const {
}
#if defined(OS_CHROMEOS)
+void CloudPolicyDataStore::set_device_mode(
+ EnterpriseInstallAttributes::DeviceMode device_mode) {
+ device_mode_ = device_mode;
+}
+
+EnterpriseInstallAttributes::DeviceMode
+ CloudPolicyDataStore::device_mode() const {
+ return device_mode_;
+}
+
DeviceStatusCollector*
CloudPolicyDataStore::device_status_collector() {
return device_status_collector_.get();
@@ -170,7 +180,7 @@ void CloudPolicyDataStore::set_device_status_collector(
DeviceStatusCollector* collector) {
device_status_collector_.reset(collector);
}
-#endif
+#endif // OS_CHROMEOS
void CloudPolicyDataStore::AddObserver(
CloudPolicyDataStore::Observer* observer) {

Powered by Google App Engine
This is Rietveld 408576698