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

Issue 290083006: Store a stacktrace of PrefService destruction in PrefChangeRegistrar (Closed)

Created:
6 years, 7 months ago by battre
Modified:
6 years, 7 months ago
Reviewers:
engedy
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Store a stacktrace of PrefService destruction in PrefChangeRegistrar Store a stacktrace of PrefService destruction in PrefChangeRegistrar to debug a race condition: ~PrefChangeRegistrar causes a crash. The current hypothesis is that this is caused because the PrefChangeRegistrar is registered to a Profile that is already destroyed. This code stores stacktrace when the Profile's PrefService is destroyed to see whether this is correct. BUG=373435 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271416

Patch Set 1 #

Patch Set 2 : Minor improvements #

Total comments: 16

Patch Set 3 : Addressed comments #

Patch Set 4 : Fix compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -0 lines) Patch
M base/prefs/pref_change_registrar.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M base/prefs/pref_change_registrar.cc View 1 2 3 chunks +21 lines, -0 lines 0 comments Download
M base/prefs/pref_member.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M base/prefs/pref_member.cc View 1 2 3 chunks +20 lines, -0 lines 0 comments Download
M base/prefs/pref_notifier.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M base/prefs/pref_notifier_impl.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M base/prefs/pref_notifier_impl.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M base/prefs/pref_notifier_impl_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M base/prefs/pref_observer.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/prefs/pref_service.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M base/prefs/pref_value_store_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
battre
Hi Balazs, please review this CL. Thanks, Dominic
6 years, 7 months ago (2014-05-16 14:00:39 UTC) #1
battre
Minor improvements
6 years, 7 months ago (2014-05-16 14:20:23 UTC) #2
engedy
https://codereview.chromium.org/290083006/diff/20001/base/prefs/pref_change_registrar.cc File base/prefs/pref_change_registrar.cc (right): https://codereview.chromium.org/290083006/diff/20001/base/prefs/pref_change_registrar.cc#newcode8 base/prefs/pref_change_registrar.cc:8: // TODO(battre): Delete this. See crbug.com/373435 nit: period to ...
6 years, 7 months ago (2014-05-16 15:19:58 UTC) #3
battre
https://codereview.chromium.org/290083006/diff/20001/base/prefs/pref_change_registrar.cc File base/prefs/pref_change_registrar.cc (right): https://codereview.chromium.org/290083006/diff/20001/base/prefs/pref_change_registrar.cc#newcode8 base/prefs/pref_change_registrar.cc:8: // TODO(battre): Delete this. See crbug.com/373435 On 2014/05/16 15:19:58, ...
6 years, 7 months ago (2014-05-16 15:58:36 UTC) #4
engedy
LGTM. Have you verified locally that it works by artificially introducing an error?
6 years, 7 months ago (2014-05-16 16:02:53 UTC) #5
battre
On 2014/05/16 16:02:53, engedy wrote: > LGTM. Have you verified locally that it works by ...
6 years, 7 months ago (2014-05-16 16:04:04 UTC) #6
battre
The CQ bit was checked by battre@chromium.org
6 years, 7 months ago (2014-05-19 15:44:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/290083006/60001
6 years, 7 months ago (2014-05-19 15:45:32 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 17:44:45 UTC) #9
Message was sent while issue was closed.
Change committed as 271416

Powered by Google App Engine
This is Rietveld 408576698