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

Issue 1666623006: MD Settings: Manage search engines 3/3, hooking up UI. (Closed)

Created:
4 years, 10 months ago by dpapad
Modified:
4 years, 10 months ago
Reviewers:
tommycli, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, stevenjb+watch-md-settings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@manage_search_engines_handler
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Manage search engines 3/3, hooking up UI. Specifically, - Migrating UI from chrome.searchEnginesPrivate API to use C++ handlers. - Implementing editing of existing search engine entries (and renamed add_search_engine_dialog to search_engine_dialog). - Hooking up validiation when editing/adding a search engine. - Some UI polish (show search engine icons when available, adjust column widths). - Adding lot of tests. BUG=479359 Committed: https://crrev.com/844b1fd74dcf08789cc2b47712d8028c1ee8f1d4 Cr-Commit-Position: refs/heads/master@{#376362}

Patch Set 1 #

Patch Set 2 : Implementation. #

Patch Set 3 : Nits #

Patch Set 4 : Rebasing. #

Patch Set 5 : Nits. #

Total comments: 16

Patch Set 6 : Addressing comments. #

Total comments: 38

Patch Set 7 : Addressing comments. #

Total comments: 22

Patch Set 8 : Addressing Tommy's feedback. #

Total comments: 5

Patch Set 9 : undo accidental binding conversion to one-way #

Total comments: 37

Patch Set 10 : Addressing comments. #

Patch Set 11 : Addressing more comments. #

Patch Set 12 : Refactoring test setup #

Patch Set 13 : Remove console.log. #

Total comments: 17

Patch Set 14 : Address nits. #

Patch Set 15 : Resolving conflicts with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+675 lines, -173 lines) Patch
M chrome/browser/resources/settings/search_engines_page/add_search_engine_dialog.html View 1 1 chunk +0 lines, -44 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/add_search_engine_dialog.js View 1 1 chunk +0 lines, -39 lines 0 comments Download
A + chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -13 lines 0 comments Download
A chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +117 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_entry.css View 1 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_entry.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_entry.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +31 lines, -6 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +49 lines, -21 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_list.css View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_page.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_page.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +35 lines, -28 lines 0 comments Download
M chrome/browser/resources/settings/settings_dialog.css View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/search_engines_page_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +361 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 67 (26 generated)
dpapad
4 years, 10 months ago (2016-02-12 20:19:53 UTC) #17
Dan Beam
didn't make it through the test file yet https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js (right): https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js#newcode53 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js:53: // ...
4 years, 10 months ago (2016-02-13 02:03:02 UTC) #18
Dan Beam
https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js File chrome/browser/resources/settings/search_engines_page/search_engine_entry.js (right): https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js#newcode45 chrome/browser/resources/settings/search_engines_page/search_engine_entry.js:45: dialog.addEventListener('iron-overlay-closed', function() { On 2016/02/13 02:03:02, Dan Beam wrote: ...
4 years, 10 months ago (2016-02-13 02:03:29 UTC) #19
dpapad
https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js (right): https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js#newcode53 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js:53: // TODO(dpapad): Localize strings On 2016/02/13 at 02:03:02, Dan ...
4 years, 10 months ago (2016-02-16 18:48:05 UTC) #20
dpapad
https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js (right): https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js#newcode53 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js:53: // TODO(dpapad): Localize strings On 2016/02/16 at 18:48:05, dpapad ...
4 years, 10 months ago (2016-02-16 19:23:32 UTC) #21
dpapad
https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js (right): https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js#newcode53 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js:53: // TODO(dpapad): Localize strings On 2016/02/16 at 19:23:32, dpapad ...
4 years, 10 months ago (2016-02-16 22:29:04 UTC) #22
dpapad
On 2016/02/16 at 22:29:04, dpapad wrote: > https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js > File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js (right): > > https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js#newcode53 ...
4 years, 10 months ago (2016-02-17 00:43:21 UTC) #23
dpapad
https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engines_page.js File chrome/browser/resources/settings/search_engines_page/search_engines_page.js (right): https://codereview.chromium.org/1666623006/diff/260001/chrome/browser/resources/settings/search_engines_page/search_engines_page.js#newcode45 chrome/browser/resources/settings/search_engines_page/search_engines_page.js:45: webUIListeners_: [], On 2016/02/16 at 18:48:05, dpapad wrote: > ...
4 years, 10 months ago (2016-02-17 01:12:20 UTC) #24
Dan Beam
https://codereview.chromium.org/1666623006/diff/280001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html (right): https://codereview.chromium.org/1666623006/diff/280001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html#newcode22 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html:22: on-input="validate_"> ideally these would be on-focus="onSearchEngineFocus_" on-input="onSearchEngineInput_" and they'd ...
4 years, 10 months ago (2016-02-17 02:21:36 UTC) #25
Dan Beam
> Specifically, > - Migrating UI from chrome.searchEnginesPrivate API to use C++ handlers. > - ...
4 years, 10 months ago (2016-02-17 02:22:35 UTC) #26
dpapad
Regarding many CLs being wrapped up in 1: I could extract item "Some UI polish ...
4 years, 10 months ago (2016-02-17 03:22:36 UTC) #27
tommycli
dpapad: Hope these comments are helpful. Thanks. https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html (right): https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html#newcode13 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html:13: <span class="title">{{dialogTitle_}}</span> ...
4 years, 10 months ago (2016-02-17 19:05:15 UTC) #28
dpapad
Thanks for the comments Tommy. Addressed them below, PTAL. https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html (right): https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html#newcode13 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html:13: ...
4 years, 10 months ago (2016-02-17 22:12:13 UTC) #29
tommycli
dpapad: Some more comments for you below. I think we are getting close. https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js File ...
4 years, 10 months ago (2016-02-17 23:47:48 UTC) #30
dpapad
https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js (right): https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js#newcode21 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js:21: model: Object, On 2016/02/17 at 23:47:47, tommycli wrote: > ...
4 years, 10 months ago (2016-02-18 00:05:35 UTC) #31
tommycli
https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js File chrome/browser/resources/settings/search_engines_page/search_engine_entry.js (right): https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js#newcode45 chrome/browser/resources/settings/search_engines_page/search_engine_entry.js:45: dialog.addEventListener('iron-overlay-closed', function() { On 2016/02/18 00:05:35, dpapad wrote: > ...
4 years, 10 months ago (2016-02-18 00:14:27 UTC) #32
dpapad
On 2016/02/18 at 00:14:27, tommycli wrote: > https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js > File chrome/browser/resources/settings/search_engines_page/search_engine_entry.js (right): > > https://codereview.chromium.org/1666623006/diff/300001/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js#newcode45 ...
4 years, 10 months ago (2016-02-18 00:36:39 UTC) #33
tommycli
On 2016/02/18 00:36:39, dpapad wrote: > On 2016/02/18 at 00:14:27, tommycli wrote: > > > ...
4 years, 10 months ago (2016-02-18 00:39:56 UTC) #34
dpapad
On 2016/02/18 at 00:39:56, tommycli wrote: > On 2016/02/18 00:36:39, dpapad wrote: > > On ...
4 years, 10 months ago (2016-02-18 00:59:06 UTC) #35
Dan Beam
https://codereview.chromium.org/1666623006/diff/280001/chrome/browser/resources/settings/search_engines_page/search_engines_page.js File chrome/browser/resources/settings/search_engines_page/search_engines_page.js (right): https://codereview.chromium.org/1666623006/diff/280001/chrome/browser/resources/settings/search_engines_page/search_engines_page.js#newcode10 chrome/browser/resources/settings/search_engines_page/search_engines_page.js:10: /** On 2016/02/17 02:21:35, Dan Beam wrote: > can ...
4 years, 10 months ago (2016-02-18 03:08:19 UTC) #36
dpapad
https://codereview.chromium.org/1666623006/diff/280001/chrome/browser/resources/settings/search_engines_page/search_engines_page.js File chrome/browser/resources/settings/search_engines_page/search_engines_page.js (right): https://codereview.chromium.org/1666623006/diff/280001/chrome/browser/resources/settings/search_engines_page/search_engines_page.js#newcode10 chrome/browser/resources/settings/search_engines_page/search_engines_page.js:10: /** On 2016/02/18 at 03:08:18, Dan Beam wrote: > ...
4 years, 10 months ago (2016-02-18 19:34:52 UTC) #38
Dan Beam
https://codereview.chromium.org/1666623006/diff/280001/chrome/test/data/webui/settings/search_engines_page_test.js File chrome/test/data/webui/settings/search_engines_page_test.js (right): https://codereview.chromium.org/1666623006/diff/280001/chrome/test/data/webui/settings/search_engines_page_test.js#newcode228 chrome/test/data/webui/settings/search_engines_page_test.js:228: var actionButton = dialog.$['actionButton']; On 2016/02/17 03:22:36, dpapad wrote: ...
4 years, 10 months ago (2016-02-18 20:32:29 UTC) #39
Dan Beam
https://codereview.chromium.org/1666623006/diff/340001/chrome/test/data/webui/settings/search_engines_page_test.js File chrome/test/data/webui/settings/search_engines_page_test.js (right): https://codereview.chromium.org/1666623006/diff/340001/chrome/test/data/webui/settings/search_engines_page_test.js#newcode177 chrome/test/data/webui/settings/search_engines_page_test.js:177: document.body.appendChild(dialog); On 2016/02/18 20:32:28, Dan Beam wrote: > On ...
4 years, 10 months ago (2016-02-18 20:37:56 UTC) #40
Dan Beam
did I mention already that author+review lives might be easier if you consciously decided to ...
4 years, 10 months ago (2016-02-18 20:40:32 UTC) #41
dpapad
On 2016/02/18 at 20:40:32, dbeam wrote: > did I mention already that author+review lives might ...
4 years, 10 months ago (2016-02-18 20:43:27 UTC) #42
Dan Beam
On 2016/02/18 20:43:27, dpapad wrote: > On 2016/02/18 at 20:40:32, dbeam wrote: > > did ...
4 years, 10 months ago (2016-02-18 20:50:08 UTC) #43
Dan Beam
I'm not necessarily suggesting splitting this review at this point (unless you'd like to land ...
4 years, 10 months ago (2016-02-18 20:51:18 UTC) #44
Dan Beam
an objection to*
4 years, 10 months ago (2016-02-18 20:51:35 UTC) #45
dpapad
On 2016/02/18 at 20:37:56, dbeam wrote: > https://codereview.chromium.org/1666623006/diff/340001/chrome/test/data/webui/settings/search_engines_page_test.js > File chrome/test/data/webui/settings/search_engines_page_test.js (right): > > https://codereview.chromium.org/1666623006/diff/340001/chrome/test/data/webui/settings/search_engines_page_test.js#newcode177 ...
4 years, 10 months ago (2016-02-18 20:54:43 UTC) #46
dpapad
PTAL https://codereview.chromium.org/1666623006/diff/280001/chrome/test/data/webui/settings/search_engines_page_test.js File chrome/test/data/webui/settings/search_engines_page_test.js (right): https://codereview.chromium.org/1666623006/diff/280001/chrome/test/data/webui/settings/search_engines_page_test.js#newcode317 chrome/test/data/webui/settings/search_engines_page_test.js:317: assertEquals(!visible, buttonEl.hidden); On 2016/02/18 at 20:32:28, Dan Beam ...
4 years, 10 months ago (2016-02-18 20:58:43 UTC) #47
dpapad
Updated per offline discussion. - Test proxy no longer inherits real one, instead implements an ...
4 years, 10 months ago (2016-02-18 22:58:24 UTC) #49
Dan Beam
lgtm https://codereview.chromium.org/1666623006/diff/460001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html (right): https://codereview.chromium.org/1666623006/diff/460001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html#newcode17 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html:17: <paper-icon-button icon="clear" on-tap="onCancelTap_" id="close"> nit: maybe make a ...
4 years, 10 months ago (2016-02-18 23:27:41 UTC) #50
dpapad
Thank you. https://codereview.chromium.org/1666623006/diff/460001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html (right): https://codereview.chromium.org/1666623006/diff/460001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html#newcode17 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html:17: <paper-icon-button icon="clear" on-tap="onCancelTap_" id="close"> On 2016/02/18 at ...
4 years, 10 months ago (2016-02-18 23:45:47 UTC) #51
Dan Beam
lgtm https://codereview.chromium.org/1666623006/diff/460001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js File chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js (right): https://codereview.chromium.org/1666623006/diff/460001/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js#newcode40 chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js:40: browserProxy_: null, On 2016/02/18 23:45:46, dpapad wrote: > ...
4 years, 10 months ago (2016-02-18 23:51:06 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666623006/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666623006/480001
4 years, 10 months ago (2016-02-18 23:52:06 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/25470) cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-02-19 00:16:47 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666623006/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666623006/480001
4 years, 10 months ago (2016-02-19 00:27:00 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/23953) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-19 00:47:07 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666623006/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666623006/500001
4 years, 10 months ago (2016-02-19 02:16:17 UTC) #64
commit-bot: I haz the power
Committed patchset #15 (id:500001)
4 years, 10 months ago (2016-02-19 03:38:32 UTC) #65
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 03:39:48 UTC) #67
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/844b1fd74dcf08789cc2b47712d8028c1ee8f1d4
Cr-Commit-Position: refs/heads/master@{#376362}

Powered by Google App Engine
This is Rietveld 408576698