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

Issue 1333473002: Support lists in <cr-settings-pref> (Closed)

Created:
5 years, 3 months ago by michaelpg
Modified:
5 years, 3 months ago
Reviewers:
*stevenjb, Dan Beam
CC:
chromium-reviews, khorimoto+watch-md-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, jhawkins+watch-md-settings_chromium.org, orenb+watch-md-settings_chromium.org, arv+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, jlklein+watch-md-settings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@PrefsTests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds support for list prefs (including lists of dictionaries). TEST=CrSettingsBrowserTest BUG=532270 Committed: https://crrev.com/6d665fd58254221164550766b8f62e913decc4a8 Cr-Commit-Position: refs/heads/master@{#349604}

Patch Set 1 #

Patch Set 2 : Now with 100% more correctness #

Patch Set 3 : List prefs fo real. #

Patch Set 4 : closuring #

Patch Set 5 : rebase #

Total comments: 19

Patch Set 6 : check types #

Patch Set 7 : #

Patch Set 8 : remove wrappers #

Patch Set 9 : #

Total comments: 6

Patch Set 10 : #

Total comments: 3

Patch Set 11 : remove redundant check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -87 lines) Patch
M chrome/browser/resources/settings/prefs/prefs.js View 1 2 3 4 5 6 7 8 9 10 6 chunks +102 lines, -73 lines 0 comments Download
M chrome/test/data/webui/settings/prefs_test_cases.js View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/prefs_tests.js View 1 2 3 4 5 chunks +25 lines, -14 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
michaelpg
Add list support and tests cases, as a follow-up to testing cr-settings-prefs.
5 years, 3 months ago (2015-09-16 00:09:53 UTC) #2
Dan Beam
https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (left): https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js#oldcode52 chrome/browser/resources/settings/prefs/prefs.js:52: function ListPrefWrapper(prefObj) { Why wouldn't we just make a ...
5 years, 3 months ago (2015-09-17 06:36:57 UTC) #3
michaelpg
https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (left): https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js#oldcode52 chrome/browser/resources/settings/prefs/prefs.js:52: function ListPrefWrapper(prefObj) { On 2015/09/17 06:36:56, Dan Beam wrote: ...
5 years, 3 months ago (2015-09-17 17:53:47 UTC) #4
Dan Beam
https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (left): https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js#oldcode52 chrome/browser/resources/settings/prefs/prefs.js:52: function ListPrefWrapper(prefObj) { On 2015/09/17 17:53:47, michaelpg wrote: > ...
5 years, 3 months ago (2015-09-17 18:13:31 UTC) #5
michaelpg
+stevenjb cuz dan is busy Here's a new tack: Get rid of PrefWrappers. * We ...
5 years, 3 months ago (2015-09-17 22:54:45 UTC) #8
Dan Beam
https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1333473002/diff/80001/chrome/browser/resources/settings/prefs/prefs.js#newcode80 chrome/browser/resources/settings/prefs/prefs.js:80: if (val1 == val2) On 2015/09/17 22:54:45, michaelpg wrote: ...
5 years, 3 months ago (2015-09-17 23:07:51 UTC) #9
Dan Beam
https://codereview.chromium.org/1333473002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1333473002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode35 chrome/browser/resources/settings/prefs/prefs.js:35: return true; needs moar \n https://codereview.chromium.org/1333473002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode71 chrome/browser/resources/settings/prefs/prefs.js:71: var keys2 ...
5 years, 3 months ago (2015-09-17 23:12:01 UTC) #10
michaelpg
https://codereview.chromium.org/1333473002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1333473002/diff/160001/chrome/browser/resources/settings/prefs/prefs.js#newcode35 chrome/browser/resources/settings/prefs/prefs.js:35: return true; On 2015/09/17 23:12:01, Dan Beam wrote: > ...
5 years, 3 months ago (2015-09-18 01:47:13 UTC) #11
Dan Beam
lgtm https://codereview.chromium.org/1333473002/diff/180001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1333473002/diff/180001/chrome/browser/resources/settings/prefs/prefs.js#newcode37 chrome/browser/resources/settings/prefs/prefs.js:37: if (val1 == null || val2 == null) ...
5 years, 3 months ago (2015-09-18 01:54:16 UTC) #12
michaelpg
https://codereview.chromium.org/1333473002/diff/180001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1333473002/diff/180001/chrome/browser/resources/settings/prefs/prefs.js#newcode37 chrome/browser/resources/settings/prefs/prefs.js:37: if (val1 == null || val2 == null) On ...
5 years, 3 months ago (2015-09-18 02:03:22 UTC) #14
Dan Beam
https://codereview.chromium.org/1333473002/diff/180001/chrome/browser/resources/settings/prefs/prefs.js File chrome/browser/resources/settings/prefs/prefs.js (right): https://codereview.chromium.org/1333473002/diff/180001/chrome/browser/resources/settings/prefs/prefs.js#newcode37 chrome/browser/resources/settings/prefs/prefs.js:37: if (val1 == null || val2 == null) On ...
5 years, 3 months ago (2015-09-18 02:05:18 UTC) #15
stevenjb
I personally find this easier to follow than the Wrapper solution, so LGTM
5 years, 3 months ago (2015-09-18 02:26:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1333473002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1333473002/220001
5 years, 3 months ago (2015-09-18 02:28:36 UTC) #19
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 3 months ago (2015-09-18 03:46:11 UTC) #20
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 03:46:46 UTC) #21
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6d665fd58254221164550766b8f62e913decc4a8
Cr-Commit-Position: refs/heads/master@{#349604}

Powered by Google App Engine
This is Rietveld 408576698