Index: chrome/browser/policy/device_policy_decoder_chromeos.cc |
diff --git a/chrome/browser/policy/device_policy_decoder_chromeos.cc b/chrome/browser/policy/device_policy_decoder_chromeos.cc |
index 53d3d95b09739b222ab740bd907c680407427e8f..c6430c87039176c9c92eaf16ee5a106b23ea0b43 100644 |
--- a/chrome/browser/policy/device_policy_decoder_chromeos.cc |
+++ b/chrome/browser/policy/device_policy_decoder_chromeos.cc |
@@ -413,6 +413,18 @@ void DecodeGenericPolicies(const em::ChromeDeviceSettingsProto& policy, |
policy.system_timezone().timezone())); |
} |
} |
+ |
+ if (policy.has_allow_redeem_offers()) { |
+ const em::AllowRedeemChromeOsRegistrationOffersProto& container( |
+ policy.allow_redeem_offers()); |
+ if (container.has_allow_redeem_offers()) { |
+ policies->Set(key::kDeviceAllowRedeemChromeOsRegistrationOffers, |
+ POLICY_LEVEL_MANDATORY, |
+ POLICY_SCOPE_MACHINE, |
+ Value::CreateBooleanValue( |
+ container.allow_redeem_offers())); |
+ } |
+ } |
} |
} // namespace |