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

Unified Diff: components/policy/core/browser/configuration_policy_handler.h

Issue 197013007: Set drive as the default download folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 1 Created 6 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: 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.

Powered by Google App Engine
This is Rietveld 408576698