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

Issue 81183005: Remove JsonPrefStore pruning of empty values on write. (Closed)

Created:
7 years, 1 month ago by gab
Modified:
7 years ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Jói
Visibility:
Public.

Description

Remove JsonPrefStore pruning of empty values on write. Written from https://codereview.chromium.org/12092021 The entire source code was surveyed for existing list/dict prefs for which this change could be problematic, it doesn't look like anything is relying on this internal detail of the API, see this for details: https://docs.google.com/a/chromium.org/spreadsheet/ccc?key=0AtwXJ4IPPZBAdG9rX3RTc3k5Z1pyN3U4b3d4Tkota3c#gid=0 TBR=joth (for minor android_webview side-effects) BUG=323346 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237473

Patch Set 1 #

Total comments: 8

Patch Set 2 : merge up to r236815 #

Patch Set 3 : review #

Patch Set 4 : fix android compile #

Patch Set 5 : Fix test assertion #

Total comments: 2

Patch Set 6 : remove else #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -279 lines) Patch
M android_webview/browser/aw_pref_store.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/browser/aw_pref_store.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
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, -34 lines 0 comments Download
M base/prefs/json_pref_store_unittest.cc View 1 2 3 4 2 chunks +27 lines, -47 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
M base/prefs/pref_registry.h View 1 2 4 chunks +0 lines, -13 lines 0 comments Download
M base/prefs/pref_registry.cc View 1 2 2 chunks +0 lines, -8 lines 0 comments Download
M base/prefs/pref_service.h View 1 2 2 chunks +0 lines, -18 lines 0 comments Download
M base/prefs/pref_service.cc View 1 2 3 chunks +0 lines, -48 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
D base/test/data/prefs/read.need_empty_value.json View 1 chunk +0 lines, -10 lines 0 comments Download
D base/test/data/prefs/write.golden.need_empty_value.json View 1 chunk +0 lines, -6 lines 0 comments Download
M base/values.h View 1 chunk +5 lines, -0 lines 0 comments Download
M base/values.cc View 1 2 3 4 5 2 chunks +22 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/chrome_pref_service_unittest.cc View 1 1 chunk +0 lines, -53 lines 0 comments Download
M chrome/browser/prefs/pref_metrics_service.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/prefs/pref_metrics_service.cc View 1 3 chunks +0 lines, -16 lines 0 comments Download
M components/user_prefs/pref_registry_syncable.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
gab
Merged https://codereview.chromium.org/12092021 all the way to up to ToT. Will try to wrap my head ...
7 years, 1 month ago (2013-11-22 04:03:55 UTC) #1
Mattias Nissler (ping if slow)
Looks good mostly, just a couple things to clean up. Regarding what's left to be ...
7 years, 1 month ago (2013-11-22 08:03:38 UTC) #2
gab
Comments addressed, I've grepped the entire source for Register(List|Dictionary)Pref calls and found 152 prefs needing ...
7 years, 1 month ago (2013-11-22 23:24:21 UTC) #3
gab
On 2013/11/22 23:24:21, gab wrote: > Comments addressed, I've grepped the entire source for > ...
7 years, 1 month ago (2013-11-22 23:45:31 UTC) #4
Mattias Nissler (ping if slow)
Patch Set 3 LGTM pending as soon as we establish reasonable confidence we're not breaking ...
7 years ago (2013-11-25 10:35:13 UTC) #5
gab
On 2013/11/25 10:35:13, Mattias Nissler wrote: > Patch Set 3 LGTM pending as soon as ...
7 years ago (2013-11-25 12:57:08 UTC) #6
Mattias Nissler (ping if slow)
On 2013/11/25 12:57:08, gab wrote: > On 2013/11/25 10:35:13, Mattias Nissler wrote: > > Patch ...
7 years ago (2013-11-25 13:13:47 UTC) #7
gab
On 2013/11/25 13:13:47, Mattias Nissler wrote: > On 2013/11/25 12:57:08, gab wrote: > > On ...
7 years ago (2013-11-25 13:24:18 UTC) #8
gab
Okay, so I just went over a bunch of them today (less than half to ...
7 years ago (2013-11-25 22:45:25 UTC) #9
Mattias Nissler (ping if slow)
On 2013/11/25 22:45:25, gab wrote: > Okay, so I just went over a bunch of ...
7 years ago (2013-11-26 09:07:14 UTC) #10
gab
Thanks for the replies, makes sense. So our goal is that on ClearPref we do ...
7 years ago (2013-11-26 15:48:21 UTC) #11
gab
On 2013/11/26 15:48:21, gab wrote: > Thanks for the replies, makes sense. > > So ...
7 years ago (2013-11-26 20:28:40 UTC) #12
Mattias Nissler (ping if slow)
LGTM, ticking the box.
7 years ago (2013-11-26 20:46:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/81183005/570001
7 years ago (2013-11-26 20:47:12 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=38232
7 years ago (2013-11-26 21:02:41 UTC) #15
gab
+Nico for base/ rubbertstamp (FYI base/prefs/ was already stamped by Mattias who owns prefs). TBR ...
7 years ago (2013-11-26 22:23:51 UTC) #16
Nico
lgtm with comment https://codereview.chromium.org/81183005/diff/590001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/81183005/diff/590001/base/values.cc#newcode764 base/values.cc:764: } else { Remove else, dedent ...
7 years ago (2013-11-26 22:56:10 UTC) #17
gab
Thanks, done! https://codereview.chromium.org/81183005/diff/590001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/81183005/diff/590001/base/values.cc#newcode764 base/values.cc:764: } else { On 2013/11/26 22:56:10, Nico ...
7 years ago (2013-11-26 22:59:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/81183005/610001
7 years ago (2013-11-26 23:02:10 UTC) #19
joth
On 2013/11/26 22:23:51, gab wrote: > +Nico for base/ rubbertstamp (FYI base/prefs/ was already stamped ...
7 years ago (2013-11-26 23:19:59 UTC) #20
commit-bot: I haz the power
7 years ago (2013-11-27 01:38:28 UTC) #21
Message was sent while issue was closed.
Change committed as 237473

Powered by Google App Engine
This is Rietveld 408576698