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

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

Issue 10068036: RefCounted types should not have public destructors, chrome/browser/ part 5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix Created 8 years, 8 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: 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 00d7c9d69b09107f67d3e3af7f227d50e955ac41..f18d6c518feea62be966754884f5f6b2ce06fbf3 100644
--- a/chrome/browser/policy/configuration_policy_pref_store.cc
+++ b/chrome/browser/policy/configuration_policy_pref_store.cc
@@ -48,10 +48,6 @@ ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore(
policy_service_->AddObserver(POLICY_DOMAIN_CHROME, "", this);
}
-ConfigurationPolicyPrefStore::~ConfigurationPolicyPrefStore() {
- policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, "", this);
-}
-
void ConfigurationPolicyPrefStore::AddObserver(PrefStore::Observer* observer) {
observers_.AddObserver(observer);
}
@@ -110,6 +106,10 @@ ConfigurationPolicyPrefStore::CreateRecommendedPolicyPrefStore() {
POLICY_LEVEL_RECOMMENDED);
}
+ConfigurationPolicyPrefStore::~ConfigurationPolicyPrefStore() {
+ policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, "", this);
+}
+
void ConfigurationPolicyPrefStore::Refresh() {
scoped_ptr<PrefValueMap> new_prefs(CreatePreferencesFromPolicies());
std::vector<std::string> changed_prefs;
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store.h ('k') | chrome/browser/policy/device_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698