diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 19:11:53 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 19:11:53 +0000 |
commit | 42f2378f9740907a78eb4857ec8ae97820e5b36b (patch) | |
tree | 9cb88caa2014f9e538fd70d4dba465d1940c7995 /chrome/browser/prefs | |
parent | dfea103ae3d0afe32b676ac792f352c332fa0db0 (diff) | |
download | chromium_src-42f2378f9740907a78eb4857ec8ae97820e5b36b.zip chromium_src-42f2378f9740907a78eb4857ec8ae97820e5b36b.tar.gz chromium_src-42f2378f9740907a78eb4857ec8ae97820e5b36b.tar.bz2 |
Clear notifier when PrefService is destroyed.
Clear out the notifier in the PrefService destructor, to make it easier to diagnose
cases where a PrefChangeRegistrar outlives the PrefService.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10547002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prefs')
-rw-r--r-- | chrome/browser/prefs/pref_service.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/prefs/pref_service.cc b/chrome/browser/prefs/pref_service.cc index 48c255b..0ea8d88 100644 --- a/chrome/browser/prefs/pref_service.cc +++ b/chrome/browser/prefs/pref_service.cc @@ -225,6 +225,7 @@ PrefService::~PrefService() { user_pref_store_ = NULL; default_store_ = NULL; pref_sync_associator_.reset(); + pref_notifier_.reset(); } void PrefService::InitFromStorage(bool async) { |