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

Issue 12092021: Remove PersistentPrefStore::MarkNeedsEmptyValue. (Closed)

Created:
7 years, 10 months ago by Mattias Nissler (ping if slow)
Modified:
7 years ago
Reviewers:
CC:
chromium-reviews, erikwright+watch_chromium.org, Jói
Visibility:
Public.

Description

Remove PersistentPrefStore::MarkNeedsEmptyValue. Instead of this hack, JsonPrefStore now cleans up less aggressively and correctly distinguishes between not-set and empty values. BUG=None TEST=Passes unit tests.

Patch Set 1 #

Patch Set 2 : Fix some tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -164 lines) Patch
M base/prefs/json_pref_store.h View 2 chunks +1 line, -2 lines 0 comments Download
M base/prefs/json_pref_store.cc View 2 chunks +2 lines, -31 lines 0 comments Download
M base/prefs/json_pref_store_unittest.cc View 1 1 chunk +15 lines, -35 lines 0 comments Download
M base/prefs/overlay_user_pref_store.h View 1 chunk +0 lines, -1 line 0 comments Download
M base/prefs/overlay_user_pref_store.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M base/prefs/persistent_pref_store.h View 1 chunk +0 lines, -4 lines 0 comments Download
D base/prefs/test/data/pref_service/read.need_empty_value.json View 1 chunk +0 lines, -10 lines 0 comments Download
D base/prefs/test/data/pref_service/write.golden.need_empty_value.json View 1 chunk +0 lines, -6 lines 0 comments Download
M base/prefs/testing_pref_store.h View 1 chunk +0 lines, -1 line 0 comments Download
M base/prefs/testing_pref_store.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M base/values.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/values.cc View 2 chunks +20 lines, -2 lines 0 comments Download
M base/values_unittest.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 2 chunks +1 line, -47 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Mattias Nissler (ping if slow)
FWIW, here's an attempt at removing MarkNeedsEmptyValue. It changes semantics of dictionary and list prefs ...
7 years, 10 months ago (2013-01-28 14:14:16 UTC) #1
gab
7 years ago (2013-11-27 13:46:23 UTC) #2
On 2013/01/28 14:14:16, Mattias Nissler wrote:
> FWIW, here's an attempt at removing MarkNeedsEmptyValue. It changes semantics
of
> dictionary and list prefs persistence though, so I thought I'd fire trybots to
> see whether this results in test failure. Probably needs a bit of code
auditing
> as well to make sure we don't break anything. In any case, I think this is
saner
> than MarkNeedsEmptyValue + DeepCopyWithoutEmptyChildren, and we should
probably
> just fix up all client code that has come to rely on that weirdness.

Moved to https://codereview.chromium.org/81183005 and committed there. Closing
this issue.

Powered by Google App Engine
This is Rietveld 408576698