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

Unified Diff: chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc

Issue 1775023002: Enterprise policy to prevent queries to the Quirks Server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First round of reviews Created 4 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
Index: chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc b/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
index 2579fe748b014c7560fe8d9a68fa4891cbedb68f..60da8fc4e88f6e894fdb1abd6ac539f32d4c716b 100644
--- a/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
+++ b/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
@@ -822,6 +822,20 @@ void DecodeGenericPolicies(const em::ChromeDeviceSettingsProto& policy,
DecodeIntegerValue(container.display_rotation_default()).release(),
nullptr);
}
+
+ if (policy.has_quirks_download_enabled()) {
+ const em::DeviceQuirksDownloadEnabledProto& container(
+ policy.quirks_download_enabled());
+ if (container.has_quirks_download_enabled()) {
Greg Levin 2016/03/14 17:29:47 Is this second "if" statement needed? Some of the
Thiemo Nagel 2016/03/23 14:53:24 It all depends on the policy proto that we receive
Greg Levin 2016/03/24 23:21:39 Acknowledged.
+ policies->Set(
+ key::kDeviceQuirksDownloadEnabled,
+ POLICY_LEVEL_MANDATORY,
+ POLICY_SCOPE_MACHINE,
+ POLICY_SOURCE_CLOUD,
+ new base::FundamentalValue(container.quirks_download_enabled()),
+ NULL);
Greg Levin 2016/03/14 17:29:47 git cl format complained about this block, request
Thiemo Nagel 2016/03/23 14:53:24 I'd agree. Consistency trumps everything.
Greg Levin 2016/03/24 23:21:39 Done.
+ }
+ }
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698