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

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

Issue 7014036: Split the policy refresh rate preference into user- and device-policy refresh rate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits. Created 9 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
Index: chrome/browser/policy/device_policy_cache.cc
diff --git a/chrome/browser/policy/device_policy_cache.cc b/chrome/browser/policy/device_policy_cache.cc
index 2789b05e0764b48333f65de68e3f8cd156787134..bb9f5339146baade3d10c68e1751dbd27db7f0dd 100644
--- a/chrome/browser/policy/device_policy_cache.cc
+++ b/chrome/browser/policy/device_policy_cache.cc
@@ -269,12 +269,13 @@ void DevicePolicyCache::DecodeDevicePolicy(
const em::ChromeDeviceSettingsProto& policy,
PolicyMap* mandatory,
PolicyMap* recommended) {
- if (policy.has_policy_refresh_rate()) {
+ if (policy.has_device_policy_refresh_rate()) {
const em::DevicePolicyRefreshRateProto container =
- policy.policy_refresh_rate();
- if (container.has_policy_refresh_rate()) {
- mandatory->Set(kPolicyPolicyRefreshRate,
- DecodeIntegerValue(container.policy_refresh_rate()));
+ policy.device_policy_refresh_rate();
+ if (container.has_device_policy_refresh_rate()) {
+ mandatory->Set(kPolicyDevicePolicyRefreshRate,
+ DecodeIntegerValue(
+ container.device_policy_refresh_rate()));
}
}

Powered by Google App Engine
This is Rietveld 408576698