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

Unified Diff: chrome/browser/chromeos/device_settings_provider.h

Issue 9423043: Add the protobufs for the set of session timeout policies planned for the kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and did some more cleanup. Created 8 years, 9 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/chromeos/cros_settings_names.cc ('k') | chrome/browser/chromeos/device_settings_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/device_settings_provider.h
diff --git a/chrome/browser/chromeos/device_settings_provider.h b/chrome/browser/chromeos/device_settings_provider.h
index 904b2b7d724bb6d0255f8db0ca26109122d660a0..4794b5380f082e3b0b24003da6cd21827991e9d2 100644
--- a/chrome/browser/chromeos/device_settings_provider.h
+++ b/chrome/browser/chromeos/device_settings_provider.h
@@ -15,6 +15,7 @@
#include "chrome/browser/chromeos/cros_settings_provider.h"
#include "chrome/browser/chromeos/login/ownership_service.h"
#include "chrome/browser/chromeos/signed_settings_migration_helper.h"
+#include "chrome/browser/policy/proto/chrome_device_policy.pb.h"
#include "chrome/browser/policy/proto/device_management_backend.pb.h"
#include "chrome/browser/prefs/pref_value_map.h"
#include "content/public/browser/notification_registrar.h"
@@ -66,6 +67,23 @@ class DeviceSettingsProvider : public CrosSettingsProvider,
SignedSettings::ReturnCode code,
const enterprise_management::PolicyFetchResponse& policy);
+ // Decode the various groups of policies.
+ void DecodeLoginPolicies(
+ const enterprise_management::ChromeDeviceSettingsProto& policy,
+ PrefValueMap* new_values_cache) const;
+ void DecodeKioskPolicies(
+ const enterprise_management::ChromeDeviceSettingsProto& policy,
+ PrefValueMap* new_values_cache) const;
+ void DecodeNetworkPolicies(
+ const enterprise_management::ChromeDeviceSettingsProto& policy,
+ PrefValueMap* new_values_cache) const;
+ void DecodeReportingPolicies(
+ const enterprise_management::ChromeDeviceSettingsProto& policy,
+ PrefValueMap* new_values_cache) const;
+ void DecodeGenericPolicies(
+ const enterprise_management::ChromeDeviceSettingsProto& policy,
+ PrefValueMap* new_values_cache) const;
+
// Parses the policy cache and fills the cache of base::Value objects.
void UpdateValuesCache();
« no previous file with comments | « chrome/browser/chromeos/cros_settings_names.cc ('k') | chrome/browser/chromeos/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698