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 |