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

Issue 1422023012: MD Settings: Simplify settings-dropdown-menu (Closed)

Created:
5 years, 1 month ago by michaelpg
Modified:
5 years, 1 month ago
Reviewers:
dschuyler, stevenjb
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org, dcheng, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Simplify settings-dropdown-menu and add tests. Uses the new PrefUtil functionality to test selected elements. BUG=425627 R=dschuyler@chromium.org,stevenjb@chromium.org Committed: https://crrev.com/5c22310582dfb1d9a2e50401ce31fa6ec57fc0e1 Cr-Commit-Position: refs/heads/master@{#360421}

Patch Set 1 : #

Total comments: 26

Patch Set 2 : rework with PrefUtil #

Patch Set 3 : Fix updateSelected #

Total comments: 8

Patch Set 4 : stevenjb feedback + disabled #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -105 lines) Patch
M chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/resources/settings/appearance_page/appearance_page.html View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/clear_browsing_data_page/clear_browsing_data_page.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/controls/compiled_resources.gyp View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/controls/settings_dropdown_menu.html View 1 2 3 1 chunk +11 lines, -7 lines 0 comments Download
M chrome/browser/resources/settings/controls/settings_dropdown_menu.js View 1 2 3 3 chunks +74 lines, -85 lines 0 comments Download
A + chrome/browser/resources/settings/i18n_setup.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/settings.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/dropdown_menu_tests.js View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
michaelpg
Dave: I thought it would be easier to show than to tell. I'm not sure ...
5 years, 1 month ago (2015-11-11 01:42:27 UTC) #3
stevenjb
https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/clear_browsing_data_page/clear_browsing_data_page.html File chrome/browser/resources/settings/clear_browsing_data_page/clear_browsing_data_page.html (right): https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/clear_browsing_data_page/clear_browsing_data_page.html#newcode18 chrome/browser/resources/settings/clear_browsing_data_page/clear_browsing_data_page.html:18: menu-options="[[clearFromOptions_]]" disabled> Can we remove 'disabled' here? https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/controls/settings_dropdown_menu.js File ...
5 years, 1 month ago (2015-11-11 02:04:22 UTC) #4
dschuyler
Does this CL address similar issues: https://codereview.chromium.org/1420533011/ A good place to test these changes is ...
5 years, 1 month ago (2015-11-11 18:57:11 UTC) #5
michaelpg
https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/prefs/selectable_pref_behavior.js File chrome/browser/resources/settings/prefs/selectable_pref_behavior.js (right): https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/prefs/selectable_pref_behavior.js#newcode17 chrome/browser/resources/settings/prefs/selectable_pref_behavior.js:17: return undefined; On 2015/11/11 02:04:22, stevenjb wrote: > I ...
5 years, 1 month ago (2015-11-11 20:29:21 UTC) #6
stevenjb
https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/prefs/selectable_pref_behavior.js File chrome/browser/resources/settings/prefs/selectable_pref_behavior.js (right): https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/prefs/selectable_pref_behavior.js#newcode17 chrome/browser/resources/settings/prefs/selectable_pref_behavior.js:17: return undefined; On 2015/11/11 20:29:21, michaelpg wrote: > On ...
5 years, 1 month ago (2015-11-11 20:42:28 UTC) #7
michaelpg
Dave, I've published some comments on https://codereview.chromium.org/1432103002. Please let me know if you'd like to ...
5 years, 1 month ago (2015-11-12 23:33:19 UTC) #8
dschuyler
Awesome, thanks for doing those tests. I've put a few questions here. I'd like to ...
5 years, 1 month ago (2015-11-13 00:11:16 UTC) #9
michaelpg
Thanks Dave. To clarify, I'm using menuMap_ as a hash map to convert from the ...
5 years, 1 month ago (2015-11-13 00:33:08 UTC) #10
dschuyler
https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/controls/settings_dropdown_menu.js File chrome/browser/resources/settings/controls/settings_dropdown_menu.js (right): https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/controls/settings_dropdown_menu.js#newcode62 chrome/browser/resources/settings/controls/settings_dropdown_menu.js:62: * The current selected value, as a string. On ...
5 years, 1 month ago (2015-11-13 19:20:29 UTC) #11
michaelpg
https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/controls/settings_dropdown_menu.js File chrome/browser/resources/settings/controls/settings_dropdown_menu.js (right): https://codereview.chromium.org/1422023012/diff/40001/chrome/browser/resources/settings/controls/settings_dropdown_menu.js#newcode62 chrome/browser/resources/settings/controls/settings_dropdown_menu.js:62: * The current selected value, as a string. On ...
5 years, 1 month ago (2015-11-13 20:05:13 UTC) #12
dschuyler
Michael, I really like the possibility that we can remove the menuMap_ and still get ...
5 years, 1 month ago (2015-11-13 22:40:55 UTC) #13
michaelpg
PTAL. This should be good to go as the finished, committable version (pending any feedback ...
5 years, 1 month ago (2015-11-17 05:08:56 UTC) #17
dschuyler
lgtm
5 years, 1 month ago (2015-11-17 18:12:10 UTC) #18
stevenjb
A few questions, but regardless lgtm https://codereview.chromium.org/1422023012/diff/100001/chrome/browser/resources/settings/controls/settings_dropdown_menu.html File chrome/browser/resources/settings/controls/settings_dropdown_menu.html (right): https://codereview.chromium.org/1422023012/diff/100001/chrome/browser/resources/settings/controls/settings_dropdown_menu.html#newcode20 chrome/browser/resources/settings/controls/settings_dropdown_menu.html:20: hidden$="[[!showNotFoundItem_]]"> On 2015/11/17 ...
5 years, 1 month ago (2015-11-17 18:19:24 UTC) #19
michaelpg
https://codereview.chromium.org/1422023012/diff/100001/chrome/browser/resources/settings/controls/settings_dropdown_menu.js File chrome/browser/resources/settings/controls/settings_dropdown_menu.js (right): https://codereview.chromium.org/1422023012/diff/100001/chrome/browser/resources/settings/controls/settings_dropdown_menu.js#newcode87 chrome/browser/resources/settings/controls/settings_dropdown_menu.js:87: computed: 'isSelectedNotFound_(selected_)', On 2015/11/17 18:19:23, stevenjb wrote: > Question: ...
5 years, 1 month ago (2015-11-18 01:08:39 UTC) #21
stevenjb
Changes lgtm
5 years, 1 month ago (2015-11-18 01:20:59 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422023012/100002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422023012/100002
5 years, 1 month ago (2015-11-18 01:41:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422023012/100002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422023012/100002
5 years, 1 month ago (2015-11-18 19:36:34 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/31676)
5 years, 1 month ago (2015-11-18 19:43:00 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422023012/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422023012/170001
5 years, 1 month ago (2015-11-18 20:24:02 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:170001)
5 years, 1 month ago (2015-11-18 21:47:03 UTC) #36
commit-bot: I haz the power
5 years, 1 month ago (2015-11-18 21:47:59 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5c22310582dfb1d9a2e50401ce31fa6ec57fc0e1
Cr-Commit-Position: refs/heads/master@{#360421}

Powered by Google App Engine
This is Rietveld 408576698