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

Issue 1586373002: MD History: Delete button in the toolbar allows deletion of multiple history-items. (Closed)

Created:
4 years, 11 months ago by hsampson
Modified:
4 years, 10 months ago
Reviewers:
tsergeant, calamity
CC:
arv+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@patch_to_be_uploaded
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Delete button in the toolbar allows deletion of multiple history-items. Any history-item that has been selected is then deleted and removed from view. Time-gap-separators are updated, as are the history-card sizes and positions. The scroll position stays where it is. BUG=425625 Committed: https://crrev.com/a28af166f376ecce3128844fae18b14556a4dfc1 Cr-Commit-Position: refs/heads/master@{#373764}

Patch Set 1 #

Patch Set 2 : Add TODO and remove console.logs. #

Total comments: 19

Patch Set 3 : Address reviewer comments: add tests for deletion and logic for supervised users. #

Total comments: 28

Patch Set 4 : Adding new test file. #

Patch Set 5 : Address reviewer comments. #

Total comments: 22

Patch Set 6 : Address reviewer comments. #

Patch Set 7 : Address reviewer comments. #

Patch Set 8 : Rebase. #

Total comments: 8

Patch Set 9 : Address reviewer comments. #

Total comments: 15

Patch Set 10 : Address reviewer comments. #

Patch Set 11 : Address reviewer comments and rebase. #

Total comments: 3

Patch Set 12 : Address reviewer comments. #

Patch Set 13 : Fix rebase. #

Patch Set 14 : Fix supervised user test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -27 lines) Patch
M chrome/browser/resources/md_history/compiled_resources.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history.js View 1 2 3 4 5 6 7 8 9 3 chunks +48 lines, -9 lines 0 comments Download
M chrome/browser/resources/md_history/history_card.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_card.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_card_manager.js View 1 2 3 4 5 6 7 8 9 3 chunks +75 lines, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_item.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_item.js View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/history_toolbar.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_toolbar.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_history/history_card_manager_test.js View 1 2 3 4 5 6 7 4 chunks +75 lines, -7 lines 0 comments Download
M chrome/test/data/webui/md_history/history_card_test.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +32 lines, -2 lines 0 comments Download
A chrome/test/data/webui/md_history/history_supervised_user_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_history/md_history_browsertest.js View 1 2 3 4 5 6 7 3 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
hsampson
4 years, 11 months ago (2016-01-14 23:50:39 UTC) #2
tsergeant
Guess what I'm going to ask for? (hint: it's more tests) https://codereview.chromium.org/1586373002/diff/20001/chrome/browser/resources/md_history/history-card-manager.js File chrome/browser/resources/md_history/history-card-manager.js (right): ...
4 years, 11 months ago (2016-01-18 02:33:52 UTC) #4
tsergeant
https://codereview.chromium.org/1586373002/diff/20001/chrome/browser/ui/webui/md_history_ui.cc File chrome/browser/ui/webui/md_history_ui.cc (right): https://codereview.chromium.org/1586373002/diff/20001/chrome/browser/ui/webui/md_history_ui.cc#newcode64 chrome/browser/ui/webui/md_history_ui.cc:64: source->AddBoolean("allowDeletingHistory", allow_deleting_history); On 2016/01/18 02:33:52, tsergeant wrote: > Hmmmmmmmmmm, ...
4 years, 11 months ago (2016-01-18 02:35:59 UTC) #5
hsampson
https://codereview.chromium.org/1586373002/diff/20001/chrome/browser/resources/md_history/history-card-manager.js File chrome/browser/resources/md_history/history-card-manager.js (right): https://codereview.chromium.org/1586373002/diff/20001/chrome/browser/resources/md_history/history-card-manager.js#newcode143 chrome/browser/resources/md_history/history-card-manager.js:143: itemDeletedFromCard = true; On 2016/01/18 02:33:52, tsergeant wrote: > ...
4 years, 11 months ago (2016-01-19 23:41:39 UTC) #6
hsampson
4 years, 11 months ago (2016-01-20 05:37:14 UTC) #7
calamity
https://codereview.chromium.org/1586373002/diff/40001/chrome/browser/resources/md_history/history.js File chrome/browser/resources/md_history/history.js (right): https://codereview.chromium.org/1586373002/diff/40001/chrome/browser/resources/md_history/history.js#newcode38 chrome/browser/resources/md_history/history.js:38: * to determine which one are selected and deletes ...
4 years, 11 months ago (2016-01-21 00:11:09 UTC) #8
hsampson
https://codereview.chromium.org/1586373002/diff/40001/chrome/browser/resources/md_history/history.js File chrome/browser/resources/md_history/history.js (right): https://codereview.chromium.org/1586373002/diff/40001/chrome/browser/resources/md_history/history.js#newcode38 chrome/browser/resources/md_history/history.js:38: * to determine which one are selected and deletes ...
4 years, 11 months ago (2016-01-21 05:34:47 UTC) #9
tsergeant
https://codereview.chromium.org/1586373002/diff/40001/chrome/browser/resources/md_history/history_card_manager.js File chrome/browser/resources/md_history/history_card_manager.js (right): https://codereview.chromium.org/1586373002/diff/40001/chrome/browser/resources/md_history/history_card_manager.js#newcode197 chrome/browser/resources/md_history/history_card_manager.js:197: getItemsToDelete: function(count) { On 2016/01/21 05:34:46, hsampson wrote: > ...
4 years, 11 months ago (2016-01-25 01:43:15 UTC) #10
hsampson
https://codereview.chromium.org/1586373002/diff/80001/chrome/browser/resources/md_history/history_card_manager.js File chrome/browser/resources/md_history/history_card_manager.js (right): https://codereview.chromium.org/1586373002/diff/80001/chrome/browser/resources/md_history/history_card_manager.js#newcode133 chrome/browser/resources/md_history/history_card_manager.js:133: for (var j = items.length - 1; j >= ...
4 years, 11 months ago (2016-01-25 04:15:42 UTC) #11
tsergeant
This one is looking pretty good https://codereview.chromium.org/1586373002/diff/140001/chrome/browser/resources/md_history/history_card_manager.js File chrome/browser/resources/md_history/history_card_manager.js (right): https://codereview.chromium.org/1586373002/diff/140001/chrome/browser/resources/md_history/history_card_manager.js#newcode215 chrome/browser/resources/md_history/history_card_manager.js:215: } You should ...
4 years, 10 months ago (2016-02-01 22:47:53 UTC) #12
hsampson
https://codereview.chromium.org/1586373002/diff/140001/chrome/browser/resources/md_history/history_card_manager.js File chrome/browser/resources/md_history/history_card_manager.js (right): https://codereview.chromium.org/1586373002/diff/140001/chrome/browser/resources/md_history/history_card_manager.js#newcode215 chrome/browser/resources/md_history/history_card_manager.js:215: } On 2016/02/01 22:47:53, tsergeant wrote: > You should ...
4 years, 10 months ago (2016-02-02 00:45:11 UTC) #13
tsergeant
lgtm, let's see what Chris thinks https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history_card_manager.js File chrome/browser/resources/md_history/history_card_manager.js (right): https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history_card_manager.js#newcode157 chrome/browser/resources/md_history/history_card_manager.js:157: * If a ...
4 years, 10 months ago (2016-02-02 03:36:51 UTC) #14
calamity
Mostly lg. https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history.js File chrome/browser/resources/md_history/history.js (right): https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history.js#newcode48 chrome/browser/resources/md_history/history.js:48: var toBeRemoved = $('history-card-manager').getItemsToDelete( nit: wrap after ...
4 years, 10 months ago (2016-02-02 05:34:59 UTC) #15
hsampson
https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history.js File chrome/browser/resources/md_history/history.js (right): https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history.js#newcode48 chrome/browser/resources/md_history/history.js:48: var toBeRemoved = $('history-card-manager').getItemsToDelete( On 2016/02/02 05:34:58, calamity wrote: ...
4 years, 10 months ago (2016-02-02 22:59:54 UTC) #16
calamity
https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history_card.html File chrome/browser/resources/md_history/history_card.html (right): https://codereview.chromium.org/1586373002/diff/160001/chrome/browser/resources/md_history/history_card.html#newcode61 chrome/browser/resources/md_history/history_card.html:61: if="[[needsTimeGap_(index, historyItems.length)]]"> On 2016/02/02 22:59:53, hsampson wrote: > On ...
4 years, 10 months ago (2016-02-03 02:10:50 UTC) #17
hsampson
4 years, 10 months ago (2016-02-04 05:02:51 UTC) #18
calamity
lgtm. https://codereview.chromium.org/1586373002/diff/200001/chrome/test/data/webui/md_history/history_card_test.js File chrome/test/data/webui/md_history/history_card_test.js (right): https://codereview.chromium.org/1586373002/diff/200001/chrome/test/data/webui/md_history/history_card_test.js#newcode10 chrome/test/data/webui/md_history/history_card_test.js:10: var items; nit: remove spacers and items from ...
4 years, 10 months ago (2016-02-04 23:59:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1586373002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1586373002/240001
4 years, 10 months ago (2016-02-05 05:21:55 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/175674)
4 years, 10 months ago (2016-02-05 06:03:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1586373002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1586373002/260001
4 years, 10 months ago (2016-02-05 06:17:33 UTC) #27
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 10 months ago (2016-02-05 07:56:24 UTC) #29
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 07:57:07 UTC) #31
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/a28af166f376ecce3128844fae18b14556a4dfc1
Cr-Commit-Position: refs/heads/master@{#373764}

Powered by Google App Engine
This is Rietveld 408576698