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

Issue 10377083: Don't mark JsonPrefStore as initialized in case of fatal failure. (Closed)

Created:
8 years, 7 months ago by Ivan Korotkov
Modified:
8 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Don't mark JsonPrefStore as initialized in case of fatal failure. In code path OnPrefLoaded(success=false), JsonPrefStore is not marked as initialized, so ProfileImpl destructor doesn't try to access unregistered prefs. BUG=122426 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136448

Patch Set 1 #

Patch Set 2 : Remove NULL-check, defer initialized flag in JsonPrefStore. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M chrome/common/json_pref_store.cc View 1 2 chunks +2 lines, -1 line 1 comment Download

Messages

Total messages: 13 (0 generated)
Ivan Korotkov
Hi Mattias, it seems that my previous fix doesn't cover all possible scenarios for this ...
8 years, 7 months ago (2012-05-10 12:23:31 UTC) #1
Mattias Nissler (ping if slow)
Talked to Bernhard about this. That stack trace is a known issue with Profiles not ...
8 years, 7 months ago (2012-05-10 13:45:08 UTC) #2
Mattias Nissler (ping if slow)
Passing on to Bernhard who knows more about this type of issue.
8 years, 7 months ago (2012-05-10 13:54:39 UTC) #3
Bernhard Bauer
On 2012/05/10 13:54:39, Mattias Nissler wrote: > Passing on to Bernhard who knows more about ...
8 years, 7 months ago (2012-05-10 14:05:50 UTC) #4
Ivan Korotkov
Updated as discussed with Bernhard, PTAL. Details in CL description.
8 years, 7 months ago (2012-05-10 15:36:05 UTC) #5
Mattias Nissler (ping if slow)
LGTM pending green tryjobs. http://codereview.chromium.org/10377083/diff/7001/chrome/common/json_pref_store.cc File chrome/common/json_pref_store.cc (right): http://codereview.chromium.org/10377083/diff/7001/chrome/common/json_pref_store.cc#newcode276 chrome/common/json_pref_store.cc:276: initialized_ = true; Good catch.
8 years, 7 months ago (2012-05-10 15:44:04 UTC) #6
Bernhard Bauer
LGTM with a small nit: Could you update the description to something more imperative ("Don't ...
8 years, 7 months ago (2012-05-10 15:59:53 UTC) #7
Ivan Korotkov
Updated, submitting.
8 years, 7 months ago (2012-05-10 18:01:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivankr@chromium.org/10377083/7001
8 years, 7 months ago (2012-05-10 18:02:19 UTC) #9
commit-bot: I haz the power
Try job failure for 10377083-7001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-10 18:38:35 UTC) #10
Ivan Korotkov
Something strange with LKGR on Mac
8 years, 7 months ago (2012-05-10 21:32:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivankr@chromium.org/10377083/7001
8 years, 7 months ago (2012-05-10 21:32:44 UTC) #12
commit-bot: I haz the power
8 years, 7 months ago (2012-05-10 23:36:41 UTC) #13
Change committed as 136448

Powered by Google App Engine
This is Rietveld 408576698