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

Issue 2449663002: MD Settings: Implement search URLs. (Closed)

Created:
4 years, 1 month ago by dpapad
Modified:
4 years, 1 month ago
Reviewers:
tommycli, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, dbeam+watch-closure_chromium.org, jlklein+watch-closure_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org, vitalyp+closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Implement search URLs. - Modify settings-ui to sync the URL 'search' parameter and the search textfield text to each other, and to trigger searching when the current route changes to a "search" URL. - Provide a way to programmatically change cr-search-field's value without triggering a 'search-changed' event (necessary for syncing URL with search field). This makes searching and navigation compatible. BUG=641663 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/63797594bc2bb93e645129b0c679081dc925ba5f Cr-Commit-Position: refs/heads/master@{#429465}

Patch Set 1 #

Patch Set 2 : Getting closer. #

Patch Set 3 : It works #

Patch Set 4 : Add test. #

Patch Set 5 : Rebase #

Patch Set 6 : Add more test. #

Total comments: 4

Patch Set 7 : Register listener earlier. #

Total comments: 3

Patch Set 8 : Rewrite approach, solidify logic and simplify. #

Patch Set 9 : Rebase #

Total comments: 9

Patch Set 10 : Address comments. #

Total comments: 2

Patch Set 11 : Nit #

Patch Set 12 : Fix test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -20 lines) Patch
M chrome/browser/resources/settings/settings_main/settings_main.js View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/resources/settings/settings_ui/compiled_resources2.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_ui/settings_ui.html View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_ui/settings_ui.js View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +56 lines, -4 lines 0 comments Download
M chrome/test/data/webui/cr_elements/cr_toolbar_search_field_tests.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/settings/settings_main_test.js View 1 2 3 4 5 6 7 8 9 4 chunks +42 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/settings_ui_browsertest.js View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 82 (53 generated)
dpapad
Screencast at https://bugs.chromium.org/p/chromium/issues/detail?id=641663#c10. Green tests on patch#5.
4 years, 1 month ago (2016-10-25 22:28:01 UTC) #8
Dan Beam
i think tommycli@ is better cuz routing https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js File chrome/browser/resources/settings/settings_ui/settings_ui.js (right): https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js#newcode69 chrome/browser/resources/settings/settings_ui/settings_ui.js:69: 'search-changed', this.onSearchChanged_.bind(this)); ...
4 years, 1 month ago (2016-10-26 01:24:36 UTC) #13
dpapad
https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js File chrome/browser/resources/settings/settings_ui/settings_ui.js (right): https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js#newcode69 chrome/browser/resources/settings/settings_ui/settings_ui.js:69: 'search-changed', this.onSearchChanged_.bind(this)); On 2016/10/26 at 01:24:36, Dan Beam wrote: ...
4 years, 1 month ago (2016-10-26 01:31:27 UTC) #14
Dan Beam
https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js File chrome/browser/resources/settings/settings_ui/settings_ui.js (right): https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js#newcode69 chrome/browser/resources/settings/settings_ui/settings_ui.js:69: 'search-changed', this.onSearchChanged_.bind(this)); On 2016/10/26 01:31:27, dpapad wrote: > On ...
4 years, 1 month ago (2016-10-26 20:50:52 UTC) #15
dpapad
https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js File chrome/browser/resources/settings/settings_ui/settings_ui.js (right): https://codereview.chromium.org/2449663002/diff/100001/chrome/browser/resources/settings/settings_ui/settings_ui.js#newcode69 chrome/browser/resources/settings/settings_ui/settings_ui.js:69: 'search-changed', this.onSearchChanged_.bind(this)); > that's a pretty lame work around. ...
4 years, 1 month ago (2016-10-26 21:02:57 UTC) #16
dpapad
https://codereview.chromium.org/2449663002/diff/120001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2449663002/diff/120001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode201 chrome/browser/resources/settings/settings_main/settings_main.js:201: if (!newRoute.isSubpage() && As I was explaining this logic ...
4 years, 1 month ago (2016-10-27 17:39:58 UTC) #17
tommycli
https://codereview.chromium.org/2449663002/diff/120001/chrome/test/data/webui/settings/settings_main_test.js File chrome/test/data/webui/settings/settings_main_test.js (right): https://codereview.chromium.org/2449663002/diff/120001/chrome/test/data/webui/settings/settings_main_test.js#newcode8 chrome/test/data/webui/settings/settings_main_test.js:8: * @extends {settings.TestBrowserProxy} If I understand correctly? : The ...
4 years, 1 month ago (2016-10-27 21:07:17 UTC) #18
dpapad
I have reworked this CL since previous comments significantly. I think the latest version is ...
4 years, 1 month ago (2016-10-28 20:23:39 UTC) #41
dpapad
On 2016/10/28 at 20:23:39, dpapad wrote: > I have reworked this CL since previous comments ...
4 years, 1 month ago (2016-10-31 22:42:39 UTC) #43
tommycli
lgtm except these complaints: sorry for the delay! https://codereview.chromium.org/2449663002/diff/240001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2449663002/diff/240001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode91 chrome/browser/resources/settings/settings_main/settings_main.js:91: searchQuery: ...
4 years, 1 month ago (2016-11-01 21:05:26 UTC) #46
dpapad
https://codereview.chromium.org/2449663002/diff/240001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2449663002/diff/240001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode91 chrome/browser/resources/settings/settings_main/settings_main.js:91: searchQuery: { Removed searchQuery property per suggestion. https://codereview.chromium.org/2449663002/diff/240001/chrome/browser/resources/settings/settings_ui/settings_ui.html File ...
4 years, 1 month ago (2016-11-01 22:02:02 UTC) #47
tommycli
still lgtm - looking much cleaner! https://codereview.chromium.org/2449663002/diff/240001/chrome/browser/resources/settings/settings_ui/settings_ui.html File chrome/browser/resources/settings/settings_ui/settings_ui.html (right): https://codereview.chromium.org/2449663002/diff/240001/chrome/browser/resources/settings/settings_ui/settings_ui.html#newcode95 chrome/browser/resources/settings/settings_ui/settings_ui.html:95: on-search-changed="onSearchChanged_" On 2016/11/01 ...
4 years, 1 month ago (2016-11-01 22:05:47 UTC) #48
dpapad
On 2016/11/01 at 22:05:47, tommycli wrote: > still lgtm - looking much cleaner! > > ...
4 years, 1 month ago (2016-11-01 22:37:20 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449663002/260001
4 years, 1 month ago (2016-11-01 22:38:34 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/184578)
4 years, 1 month ago (2016-11-01 22:59:11 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449663002/260001
4 years, 1 month ago (2016-11-02 00:29:20 UTC) #55
Dan Beam
lgtm https://codereview.chromium.org/2449663002/diff/260001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js (right): https://codereview.chromium.org/2449663002/diff/260001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js#newcode61 ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js:61: this.onValueChanged_(value, opt_noEvent || false); nit: !!opt_noEvent
4 years, 1 month ago (2016-11-02 00:58:42 UTC) #57
dpapad
https://codereview.chromium.org/2449663002/diff/260001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js (right): https://codereview.chromium.org/2449663002/diff/260001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js#newcode61 ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js:61: this.onValueChanged_(value, opt_noEvent || false); On 2016/11/02 at 00:58:41, Dan ...
4 years, 1 month ago (2016-11-02 01:02:23 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449663002/280001
4 years, 1 month ago (2016-11-02 01:02:54 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449663002/280001
4 years, 1 month ago (2016-11-02 01:04:29 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/307078)
4 years, 1 month ago (2016-11-02 02:23:43 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449663002/280001
4 years, 1 month ago (2016-11-02 02:37:06 UTC) #71
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/307120)
4 years, 1 month ago (2016-11-02 03:52:13 UTC) #73
dpapad
On 2016/11/02 at 03:52:13, commit-bot wrote: > Try jobs failed on following builders: > linux_chromium_chromeos_rel_ng ...
4 years, 1 month ago (2016-11-02 17:03:44 UTC) #74
dpapad
On 2016/11/02 at 17:03:44, dpapad wrote: > On 2016/11/02 at 03:52:13, commit-bot wrote: > > ...
4 years, 1 month ago (2016-11-02 20:56:44 UTC) #75
tommycli
On 2016/11/02 20:56:44, dpapad wrote: > On 2016/11/02 at 17:03:44, dpapad wrote: > > On ...
4 years, 1 month ago (2016-11-02 20:59:34 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449663002/300001
4 years, 1 month ago (2016-11-02 22:53:40 UTC) #79
commit-bot: I haz the power
Committed patchset #12 (id:300001)
4 years, 1 month ago (2016-11-03 00:05:20 UTC) #80
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 00:08:04 UTC) #82
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/63797594bc2bb93e645129b0c679081dc925ba5f
Cr-Commit-Position: refs/heads/master@{#429465}

Powered by Google App Engine
This is Rietveld 408576698