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

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

Issue 197013007: Set drive as the default download folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes test failure and enables a new test 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_list.h
diff --git a/components/policy/core/browser/configuration_policy_handler_list.h b/components/policy/core/browser/configuration_policy_handler_list.h
index f686d6870b4aafcde803d0c91dca8b9d388f3742..24bd7360ac241a9bed00d63ee7cc35e68bf1c80a 100644
--- a/components/policy/core/browser/configuration_policy_handler_list.h
+++ b/components/policy/core/browser/configuration_policy_handler_list.h
@@ -19,6 +19,7 @@ namespace policy {
class ConfigurationPolicyHandler;
class PolicyErrorMap;
+struct PolicyHandlerParameters;
class PolicyMap;
struct PolicyToPreferenceMapEntry;
class Schema;
@@ -28,7 +29,11 @@ class Schema;
// cleaning up policy values for displaying.
class POLICY_EXPORT ConfigurationPolicyHandlerList {
public:
+ typedef base::Callback<void(PolicyHandlerParameters*)>
+ PopulatePolicyHandlerParametersCallback;
+
explicit ConfigurationPolicyHandlerList(
+ const PopulatePolicyHandlerParametersCallback& parameters_callback,
const GetChromePolicyDetailsCallback& details_callback);
~ConfigurationPolicyHandlerList();
@@ -47,7 +52,8 @@ class POLICY_EXPORT ConfigurationPolicyHandlerList {
private:
std::vector<ConfigurationPolicyHandler*> handlers_;
- GetChromePolicyDetailsCallback details_callback_;
+ const PopulatePolicyHandlerParametersCallback parameters_callback_;
+ const GetChromePolicyDetailsCallback details_callback_;
DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyHandlerList);
};

Powered by Google App Engine
This is Rietveld 408576698