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

Unified Diff: chrome/browser/policy/configuration_policy_pref_store.cc

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 | « no previous file | chrome/browser/policy/policy_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/configuration_policy_pref_store.cc
diff --git a/chrome/browser/policy/configuration_policy_pref_store.cc b/chrome/browser/policy/configuration_policy_pref_store.cc
index 30bdb12e2f12c5e470ccbdad0eb0b35b944647c0..9dc41512b5f89057dca5d8fbc19cd6620da0af5a 100644
--- a/chrome/browser/policy/configuration_policy_pref_store.cc
+++ b/chrome/browser/policy/configuration_policy_pref_store.cc
@@ -45,7 +45,7 @@ ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore(
level_(level) {
// Read initial policy.
prefs_.reset(CreatePreferencesFromPolicies());
- policy_service_->AddObserver(POLICY_DOMAIN_CHROME, "", this);
+ policy_service_->AddObserver(POLICY_DOMAIN_CHROME, this);
}
void ConfigurationPolicyPrefStore::AddObserver(PrefStore::Observer* observer) {
@@ -109,7 +109,7 @@ ConfigurationPolicyPrefStore::CreateRecommendedPolicyPrefStore(
}
ConfigurationPolicyPrefStore::~ConfigurationPolicyPrefStore() {
- policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, "", this);
+ policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this);
}
void ConfigurationPolicyPrefStore::Refresh() {
« no previous file with comments | « no previous file | chrome/browser/policy/policy_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698