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

Unified Diff: chrome/browser/policy/policy_service.h

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: Fixed mac tests Created 7 years, 1 month 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: chrome/browser/policy/policy_service.h
diff --git a/chrome/browser/policy/policy_service.h b/chrome/browser/policy/policy_service.h
index b6c6c0e6ca418241d874efec99270c03a6e276c0..ec4dc923dad1690f7d6825377ff93f112723ff08 100644
--- a/chrome/browser/policy/policy_service.h
+++ b/chrome/browser/policy/policy_service.h
@@ -16,8 +16,6 @@
namespace policy {
-class PolicyDomainDescriptor;
-
// The PolicyService merges policies from all available sources, taking into
// account their priorities. Policy clients can retrieve policy for their domain
// and register for notifications on policy updates.
@@ -54,21 +52,8 @@ class PolicyService {
virtual void RemoveObserver(PolicyDomain domain, Observer* observer) = 0;
- // Registers the |descriptor| of a policy domain, indicated by
- // |descriptor->domain()|. This overrides the descriptor previously set, if
- // there was one.
- // This registration signals that there is interest in receiving policy for
- // the components listed in the descriptor. The policy providers will try to
- // load policy for these components, and validate it against the descriptor.
- // Cached data for components that aren't registered anymore may be dropped.
- virtual void RegisterPolicyDomain(
- scoped_refptr<const PolicyDomainDescriptor> descriptor) = 0;
-
virtual const PolicyMap& GetPolicies(const PolicyNamespace& ns) const = 0;
- virtual scoped_refptr<const PolicyDomainDescriptor> GetPolicyDomainDescriptor(
- PolicyDomain domain) const = 0;
-
// The PolicyService loads policy from several sources, and some require
// asynchronous loads. IsInitializationComplete() returns true once all
// sources have loaded their policies for the given |domain|.

Powered by Google App Engine
This is Rietveld 408576698