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

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: Fixes build errors 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..5a20746d3177ed4346679dde15d28822b8c28b6c 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;
bartfab (slow) 2014/03/14 13:43:45 Nit: Arrange in alphabetic order.
// Maps a policy type to a preference path, and to the expected value type.
struct POLICY_EXPORT PolicyToPreferenceMapEntry {
@@ -49,7 +50,16 @@ class POLICY_EXPORT ConfigurationPolicyHandler {
// Processes the policies handled by this ConfigurationPolicyHandler and sets
// the appropriate preferences in |prefs|.
virtual void ApplyPolicySettings(const PolicyMap& policies,
- PrefValueMap* prefs) = 0;
+ PrefValueMap* prefs);
+
+ // Processes the policies handled by this ConfigurationPolicyHandler and sets
+ // the appropriate preferences in |prefs|.
+ // This function takes an additional input that is used to supply
bartfab (slow) 2014/03/14 13:43:45 Nit: You can simplify this sentence, especially "s
+ // parameters in |parameters| to the policy handler.
+ virtual void ApplyPolicySettingsWithParameters(
bartfab (slow) 2014/03/14 13:43:45 Since PolicyHandlerList always invokes ApplyPolicy
+ const PolicyMap& policies,
+ const PolicyHandlerParameters& 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

Powered by Google App Engine
This is Rietveld 408576698