| Index: chrome/browser/policy/configuration_policy_handler.h
|
| diff --git a/chrome/browser/policy/configuration_policy_handler.h b/chrome/browser/policy/configuration_policy_handler.h
|
| index 8d75ddfb32c98bcae425a2e0c5b2cd1e15846c48..98efaf2fa57d12ac1e5830f2dbb10cd90ed9a8fd 100644
|
| --- a/chrome/browser/policy/configuration_policy_handler.h
|
| +++ b/chrome/browser/policy/configuration_policy_handler.h
|
| @@ -137,6 +137,24 @@ class StringToIntEnumListPolicyHandler : public TypeCheckingPolicyHandler {
|
| DISALLOW_COPY_AND_ASSIGN(StringToIntEnumListPolicyHandler);
|
| };
|
|
|
| +// A policy handler implementation that maps an int percentage value to a
|
| +// double.
|
| +class IntPercentageToDoublePolicyHandler : public TypeCheckingPolicyHandler {
|
| + public:
|
| + IntPercentageToDoublePolicyHandler(const char* policy_name,
|
| + const char* pref_path);
|
| +
|
| + // ConfigurationPolicyHandler:
|
| + virtual void ApplyPolicySettings(const PolicyMap& policies,
|
| + PrefValueMap* prefs) OVERRIDE;
|
| +
|
| + private:
|
| + // Name of the pref to write.
|
| + const char* pref_path_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(IntPercentageToDoublePolicyHandler);
|
| +};
|
| +
|
| // Implements additional checks for policies that are lists of extension IDs.
|
| class ExtensionListPolicyHandler : public TypeCheckingPolicyHandler {
|
| public:
|
|
|