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

Issue 2068613002: [MD History] Add URL parameter for search. (Closed)

Created:
4 years, 6 months ago by calamity
Modified:
4 years, 5 months ago
Reviewers:
tsergeant
CC:
chromium-reviews, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@routing
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD History] Add URL parameter for search. This CL adds routing from the search term in the history toolbar to the URL query. It also rewrites the old history page's #q=search queries into ?q=search to maintain compatibility. BUG=619799 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/98fea99c967cbac5cd3959a3726d0a082c1acc93 Cr-Commit-Position: refs/heads/master@{#406515}

Patch Set 1 #

Patch Set 2 : use 2-way mapping #

Patch Set 3 : add tests #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : address comment #

Patch Set 6 : rebaseru #

Patch Set 7 : rebase #

Patch Set 8 : add load-with-query-param test #

Patch Set 9 : rebase #

Total comments: 12

Patch Set 10 : address comments #

Patch Set 11 : rebase #

Total comments: 2

Patch Set 12 : fix nit #

Total comments: 2

Patch Set 13 : remove_var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -25 lines) Patch
M chrome/browser/resources/md_history/app.html View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_history/app.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/list_container.js View 1 2 3 4 5 6 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/resources/md_history/side_bar.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/side_bar.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/synced_device_card.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/synced_device_card.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/synced_device_manager.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/synced_device_manager.js View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/data/webui/md_history/history_list_test.js View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/data/webui/md_history/history_routing_test.js View 1 2 3 4 5 6 7 8 9 2 chunks +75 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_history/history_synced_tabs_test.js View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_history/md_history_browsertest.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +33 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 30 (11 generated)
calamity
4 years, 6 months ago (2016-06-15 07:14:56 UTC) #3
Dan Beam
why do we need both ?q=search and #q=search?
4 years, 6 months ago (2016-06-15 22:08:00 UTC) #6
calamity
On 2016/06/15 22:08:00, Dan Beam wrote: > why do we need both ?q=search and #q=search? ...
4 years, 6 months ago (2016-06-16 01:35:59 UTC) #7
Dan Beam
On 2016/06/16 01:35:59, calamity wrote: > On 2016/06/15 22:08:00, Dan Beam wrote: > > why ...
4 years, 6 months ago (2016-06-16 01:39:10 UTC) #8
tsergeant
https://codereview.chromium.org/2068613002/diff/100001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2068613002/diff/100001/chrome/browser/resources/md_history/app.js#newcode69 chrome/browser/resources/md_history/app.js:69: 'searchQueryParamChanged_(route.__queryParams.q)', app-route exposes a `queryParams` property. You should use ...
4 years, 6 months ago (2016-06-16 02:00:15 UTC) #9
calamity
On 2016/06/16 01:39:10, Dan Beam wrote: > On 2016/06/16 01:35:59, calamity wrote: > > On ...
4 years, 6 months ago (2016-06-16 05:48:57 UTC) #10
calamity
https://codereview.chromium.org/2068613002/diff/100001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2068613002/diff/100001/chrome/browser/resources/md_history/app.js#newcode69 chrome/browser/resources/md_history/app.js:69: 'searchQueryParamChanged_(route.__queryParams.q)', On 2016/06/16 02:00:15, tsergeant wrote: > app-route exposes ...
4 years, 6 months ago (2016-06-16 06:49:14 UTC) #11
calamity
Updated to work with the latest patch. PTAL, thanks.
4 years, 5 months ago (2016-07-18 04:55:13 UTC) #15
tsergeant
https://codereview.chromium.org/2068613002/diff/240001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2068613002/diff/240001/chrome/browser/resources/md_history/app.js#newcode83 chrome/browser/resources/md_history/app.js:83: if (window.location.hash) { Should have a comment here explaining ...
4 years, 5 months ago (2016-07-19 03:32:20 UTC) #16
calamity
https://codereview.chromium.org/2068613002/diff/240001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2068613002/diff/240001/chrome/browser/resources/md_history/app.js#newcode83 chrome/browser/resources/md_history/app.js:83: if (window.location.hash) { On 2016/07/19 03:32:20, tsergeant wrote: > ...
4 years, 5 months ago (2016-07-19 04:35:33 UTC) #18
tsergeant
lgtm with a nit https://codereview.chromium.org/2068613002/diff/300001/chrome/test/data/webui/md_history/md_history_browsertest.js File chrome/test/data/webui/md_history/md_history_browsertest.js (right): https://codereview.chromium.org/2068613002/diff/300001/chrome/test/data/webui/md_history/md_history_browsertest.js#newcode137 chrome/test/data/webui/md_history/md_history_browsertest.js:137: return waitForUpgrade($('history-app')).then(function() { `upgraded` is ...
4 years, 5 months ago (2016-07-19 04:52:38 UTC) #19
calamity
https://codereview.chromium.org/2068613002/diff/300001/chrome/test/data/webui/md_history/md_history_browsertest.js File chrome/test/data/webui/md_history/md_history_browsertest.js (right): https://codereview.chromium.org/2068613002/diff/300001/chrome/test/data/webui/md_history/md_history_browsertest.js#newcode137 chrome/test/data/webui/md_history/md_history_browsertest.js:137: return waitForUpgrade($('history-app')).then(function() { On 2016/07/19 04:52:38, tsergeant wrote: > ...
4 years, 5 months ago (2016-07-19 06:48:56 UTC) #20
tsergeant
https://codereview.chromium.org/2068613002/diff/320001/chrome/test/data/webui/md_history/md_history_browsertest.js File chrome/test/data/webui/md_history/md_history_browsertest.js (right): https://codereview.chromium.org/2068613002/diff/320001/chrome/test/data/webui/md_history/md_history_browsertest.js#newcode135 chrome/test/data/webui/md_history/md_history_browsertest.js:135: return waitForUpgrade($('history-app')).then(function() { You can still get rid of ...
4 years, 5 months ago (2016-07-19 07:06:54 UTC) #21
calamity
https://codereview.chromium.org/2068613002/diff/320001/chrome/test/data/webui/md_history/md_history_browsertest.js File chrome/test/data/webui/md_history/md_history_browsertest.js (right): https://codereview.chromium.org/2068613002/diff/320001/chrome/test/data/webui/md_history/md_history_browsertest.js#newcode135 chrome/test/data/webui/md_history/md_history_browsertest.js:135: return waitForUpgrade($('history-app')).then(function() { On 2016/07/19 07:06:54, tsergeant wrote: > ...
4 years, 5 months ago (2016-07-20 04:59:07 UTC) #22
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/2068613002/340001
4 years, 5 months ago (2016-07-20 07:34:16 UTC) #25
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 07:34:18 UTC) #26
commit-bot: I haz the power
Committed patchset #13 (id:340001)
4 years, 5 months ago (2016-07-20 08:16:05 UTC) #27
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 08:16:14 UTC) #28
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 08:18:58 UTC) #30
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/98fea99c967cbac5cd3959a3726d0a082c1acc93
Cr-Commit-Position: refs/heads/master@{#406515}

Powered by Google App Engine
This is Rietveld 408576698