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

Unified Diff: components/policy/core/common/policy_service_impl.h

Issue 113813003: Cleanup the policy code after the recent moves into the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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/common/policy_service_impl.h
diff --git a/components/policy/core/common/policy_service_impl.h b/components/policy/core/common/policy_service_impl.h
index a10e881a2b0fd49d1e599f356b10511fa77ce042..1a67a419398728966702b1cd72aaf3d43bc5e878 100644
--- a/components/policy/core/common/policy_service_impl.h
+++ b/components/policy/core/common/policy_service_impl.h
@@ -28,15 +28,12 @@ class POLICY_EXPORT PolicyServiceImpl
public ConfigurationPolicyProvider::Observer {
public:
typedef std::vector<ConfigurationPolicyProvider*> Providers;
- typedef base::Callback<void(PolicyBundle*)> PreprocessCallback;
// The PolicyServiceImpl will merge policies from |providers|. |providers|
// must be sorted in decreasing order of priority; the first provider will
// have the highest priority. The PolicyServiceImpl does not take ownership of
// the providers, and they must outlive the PolicyServiceImpl.
- // |preprocess_callback| will be applied every PolicyBundle before merginng.
- PolicyServiceImpl(const Providers& providers,
- const PreprocessCallback& preprocess_callback);
+ explicit PolicyServiceImpl(const Providers& providers);
virtual ~PolicyServiceImpl();
@@ -90,9 +87,6 @@ class POLICY_EXPORT PolicyServiceImpl
// call to RefreshPolicies().
std::set<ConfigurationPolicyProvider*> refresh_pending_;
- // Callback invoked to manipulate a PolicyBundle before it is merged.
- PreprocessCallback preprocess_callback_;
-
// List of callbacks to invoke once all providers refresh after a
// RefreshPolicies() call.
std::vector<base::Closure> refresh_callbacks_;
« no previous file with comments | « components/policy/core/common/policy_pref_names.h ('k') | components/policy/core/common/policy_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698