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

Issue 10547002: Clear notifier when PrefService is destroyed. (Closed)

Created:
8 years, 6 months ago by Andrew T Wilson (Slow)
Modified:
8 years, 6 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141248

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M chrome/browser/prefs/pref_service.cc View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Andrew T Wilson (Slow)
PTAL. I keep running into test failures where objects containing a PrefChangeRegistrar outlive the PrefService, ...
8 years, 6 months ago (2012-06-06 21:02:00 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/10547002/diff/1/chrome/browser/prefs/pref_service.cc File chrome/browser/prefs/pref_service.cc (right): http://codereview.chromium.org/10547002/diff/1/chrome/browser/prefs/pref_service.cc#newcode228 chrome/browser/prefs/pref_service.cc:228: pref_notifier_.reset(); I don't really understand. What does this change ...
8 years, 6 months ago (2012-06-08 13:08:46 UTC) #2
Andrew T Wilson (Slow)
On 2012/06/08 13:08:46, Bernhard Bauer wrote: > http://codereview.chromium.org/10547002/diff/1/chrome/browser/prefs/pref_service.cc > File chrome/browser/prefs/pref_service.cc (right): > > http://codereview.chromium.org/10547002/diff/1/chrome/browser/prefs/pref_service.cc#newcode228 ...
8 years, 6 months ago (2012-06-08 14:58:53 UTC) #3
Bernhard Bauer
On 2012/06/08 14:58:53, Andrew T Wilson wrote: > On 2012/06/08 13:08:46, Bernhard Bauer wrote: > ...
8 years, 6 months ago (2012-06-08 15:54:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10547002/1
8 years, 6 months ago (2012-06-08 17:23:47 UTC) #5
commit-bot: I haz the power
8 years, 6 months ago (2012-06-08 19:11:55 UTC) #6
Change committed as 141248

Powered by Google App Engine
This is Rietveld 408576698