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

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

Issue 9968013: Add policy switch for location reporting and decode all policies in device_policy_cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix doc string 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/app/policy/policy_templates.json ('k') | chrome/browser/policy/proto/chrome_device_policy.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2b655043d0a124ca1e93933130695f8b62b25f22..64aa9cb4d6ec8b5be2cc5c3d0faa6b59c44fcc9f 100644
--- a/chrome/browser/policy/device_policy_cache.cc
+++ b/chrome/browser/policy/device_policy_cache.cc
@@ -524,6 +524,12 @@ void DevicePolicyCache::DecodeReportingPolicies(
POLICY_SCOPE_MACHINE,
Value::CreateBooleanValue(container.report_boot_mode()));
}
+ if (container.has_report_location()) {
+ policies->Set(key::kReportDeviceLocation,
+ POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_MACHINE,
+ Value::CreateBooleanValue(container.report_location()));
+ }
}
}
@@ -583,6 +589,14 @@ void DevicePolicyCache::DecodeGenericPolicies(
POLICY_SCOPE_MACHINE,
Value::CreateBooleanValue(container.update_disabled()));
}
+
+ if (container.has_target_version_prefix()) {
+ policies->Set(key::kDeviceTargetVersionPrefix,
+ POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_MACHINE,
+ Value::CreateStringValue(
+ container.target_version_prefix()));
+ }
}
if (policy.has_start_up_urls()) {
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/policy/proto/chrome_device_policy.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698