Chromium Code Reviews| Index: components/policy/core/browser/configuration_policy_handler.h |
| diff --git a/components/policy/core/browser/configuration_policy_handler.h b/components/policy/core/browser/configuration_policy_handler.h |
| index b564d0e3cb270b59b8398ba7547ab82074937601..d6da076bbee54044234b510ed7f337db8990626a 100644 |
| --- a/components/policy/core/browser/configuration_policy_handler.h |
| +++ b/components/policy/core/browser/configuration_policy_handler.h |
| @@ -22,6 +22,7 @@ namespace policy { |
| class PolicyErrorMap; |
| class PolicyMap; |
| +struct PolicyHandlerParameters; |
| // Maps a policy type to a preference path, and to the expected value type. |
| struct POLICY_EXPORT PolicyToPreferenceMapEntry { |
| @@ -51,6 +52,14 @@ class POLICY_EXPORT ConfigurationPolicyHandler { |
| virtual void ApplyPolicySettings(const PolicyMap& policies, |
| PrefValueMap* prefs) = 0; |
| + // Processes the policies handled by this ConfigurationPolicyHandler and sets |
| + // the appropriate preferences in |prefs|. |
| + // This function takes an additional input that could be used to supply |
|
bartfab (slow)
2014/03/13 13:20:00
Nit: "that could be used to supply" makes no sense
|
| + // parameters in |pars| to the policy handlers. |
|
bartfab (slow)
2014/03/13 13:20:00
Nit: s/handlers/handler/
|
| + virtual void ApplyPolicySettingsWithPars(const PolicyMap& policies, |
|
bartfab (slow)
2014/03/13 13:20:00
Nit: Avoid abbreviations: s/Pars/Parameters/
|
| + const PolicyHandlerParameters& pars, |
|
bartfab (slow)
2014/03/13 13:20:00
Nit: Avoid abbreviations: s/pars/parameters/
|
| + PrefValueMap* prefs); |
| + |
| // Modifies the values of some of the policies in |policies| so that they |
| // are more suitable to display to the user. This can be used to remove |
| // sensitive values such as passwords, or to pretty-print values. |