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

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

Issue 10805057: Modified PolicyService to register observers by domain only, instead of domain and component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit Created 8 years, 5 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
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store.cc ('k') | chrome/browser/policy/policy_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_service.h
diff --git a/chrome/browser/policy/policy_service.h b/chrome/browser/policy/policy_service.h
index c58156e4fc5a3be25372dffd83d6b0c65843d6c9..0e18637fea24d6213801827a2f4ecaf6a3709f58 100644
--- a/chrome/browser/policy/policy_service.h
+++ b/chrome/browser/policy/policy_service.h
@@ -57,13 +57,10 @@ class PolicyService {
virtual ~PolicyService() {}
- virtual void AddObserver(PolicyDomain domain,
- const std::string& component_id,
- Observer* observer) = 0;
+ // Observes changes to all components of the given |domain|.
+ virtual void AddObserver(PolicyDomain domain, Observer* observer) = 0;
- virtual void RemoveObserver(PolicyDomain domain,
- const std::string& component_id,
- Observer* observer) = 0;
+ virtual void RemoveObserver(PolicyDomain domain, Observer* observer) = 0;
virtual const PolicyMap& GetPolicies(
PolicyDomain domain,
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store.cc ('k') | chrome/browser/policy/policy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698