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

Issue 722953002: downloads: add the ability to undo download removal. (Closed)

Created:
6 years, 1 month ago by Dan Beam
Modified:
6 years ago
CC:
chromium-reviews, extensions-reviews_chromium.org, benjhayden+dwatch_chromium.org, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, chromium-apps-reviews_chromium.org, dbeam+watch-closure_chromium.org, Randy Smith (Not in Mondays), cbentzel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

downloads: add the ability to undo download removal. Currently this works by pressing Ctrl+z or Cmd+z after removing a download. We should probably show a banner or communicate to the user that this functionality exists other than them guessing. R=arv@chromium.org,benjhayden@chromium.org BUG=428162 Committed: https://crrev.com/59b0be74d47f3bccceac31f205e515097079a0fa Cr-Commit-Position: refs/heads/master@{#306549}

Patch Set 1 : whoops #

Total comments: 5

Patch Set 2 : comment #

Total comments: 23

Patch Set 3 : dcheck #

Total comments: 6

Patch Set 4 : fixes #

Total comments: 4

Patch Set 5 : asanka@ review #

Patch Set 6 : test fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -46 lines) Patch
M chrome/browser/resources/downloads/compiled_resources.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/downloads/downloads.html View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/downloads/downloads.js View 1 2 3 14 chunks +34 lines, -26 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 11 chunks +95 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M ui/webui/resources/js/cr/ui/command.js View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (17 generated)
Dan Beam
R=arv@: chrome/browser/resources ui/webui R=benjhayden@: chrome/browser/downloads chrome/browser/extensions/api/downloads chrome/browser/ui/webui/downloads* content/browser/downloads CC=rdsmith@, asanka@ will add owners for content/public ...
6 years, 1 month ago (2014-11-13 02:51:16 UTC) #2
Randy Smith (Not in Mondays)
When does the file on disk actually go away?
6 years, 1 month ago (2014-11-13 17:25:48 UTC) #5
benjhayden
Randy, the normal Remove() path is taken for REMOVED downloads when chrome://downloads is closed and ...
6 years, 1 month ago (2014-11-13 18:01:59 UTC) #6
arv (Not doing code reviews)
WebUI LGTM https://codereview.chromium.org/722953002/diff/40001/chrome/browser/resources/downloads/downloads.js File chrome/browser/resources/downloads/downloads.js (left): https://codereview.chromium.org/722953002/diff/40001/chrome/browser/resources/downloads/downloads.js#oldcode786 chrome/browser/resources/downloads/downloads.js:786: chrome.send('drag', [this.id_.toString()]); ha. those were the days ...
6 years, 1 month ago (2014-11-13 19:02:30 UTC) #7
asanka
Have you considered just delaying the Remove() call and showing a mini "Undo" banner in ...
6 years, 1 month ago (2014-11-13 19:59:54 UTC) #9
benjhayden
On 2014/11/13 19:59:54, asanka wrote: > Have you considered just delaying the Remove() call and ...
6 years, 1 month ago (2014-11-13 20:12:41 UTC) #10
asanka
On 2014/11/13 20:12:41, benjhayden_chromium wrote: > On 2014/11/13 19:59:54, asanka wrote: > > Have you ...
6 years, 1 month ago (2014-11-13 21:24:00 UTC) #11
Dan Beam
On 2014/11/13 19:59:54, asanka wrote: > Have you considered just delaying the Remove() call and ...
6 years, 1 month ago (2014-11-18 23:40:45 UTC) #12
Dan Beam
On 2014/11/13 21:24:00, asanka wrote: > On 2014/11/13 20:12:41, benjhayden_chromium wrote: > > On 2014/11/13 ...
6 years, 1 month ago (2014-11-18 23:56:44 UTC) #13
Dan Beam
On 2014/11/18 23:56:44, Dan Beam wrote: > a) should removal undoing be persistent (i.e. across ...
6 years, 1 month ago (2014-11-19 00:01:36 UTC) #14
Dan Beam
hwi@ got back to me: https://code.google.com/p/chromium/issues/detail?id=428162#c7 In general she preferred keeping a download around very ...
6 years, 1 month ago (2014-11-19 23:09:32 UTC) #20
Dan Beam
https://codereview.chromium.org/722953002/diff/40001/chrome/browser/ui/webui/downloads_dom_handler.cc File chrome/browser/ui/webui/downloads_dom_handler.cc (right): https://codereview.chromium.org/722953002/diff/40001/chrome/browser/ui/webui/downloads_dom_handler.cc#newcode268 chrome/browser/ui/webui/downloads_dom_handler.cc:268: while (!removed_ids_.empty()) { On 2014/11/19 23:09:32, Dan Beam wrote: ...
6 years, 1 month ago (2014-11-19 23:14:06 UTC) #21
Dan Beam
https://codereview.chromium.org/722953002/diff/180001/content/browser/download/download_manager_impl.cc File content/browser/download/download_manager_impl.cc (left): https://codereview.chromium.org/722953002/diff/180001/content/browser/download/download_manager_impl.cc#oldcode348 content/browser/download/download_manager_impl.cc:348: downloads_.clear(); STLDeleteValues() does this already https://codereview.chromium.org/722953002/diff/180001/content/browser/download/download_manager_impl.cc File content/browser/download/download_manager_impl.cc (right): ...
6 years, 1 month ago (2014-11-19 23:16:26 UTC) #23
benjhayden
There are benefits and drawbacks to all possible approaches to this problem. Asanka is the ...
6 years, 1 month ago (2014-11-21 00:50:01 UTC) #26
Dan Beam
https://codereview.chromium.org/722953002/diff/180001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (left): https://codereview.chromium.org/722953002/diff/180001/content/browser/download/download_item_impl.cc#oldcode344 content/browser/download/download_item_impl.cc:344: // We have now been deleted. On 2014/11/21 00:50:00, ...
6 years, 1 month ago (2014-11-21 05:32:22 UTC) #28
asanka
The objective of the OnDownloadRemoved() notification is to signal that the download is permanently going ...
6 years, 1 month ago (2014-11-21 20:01:06 UTC) #29
Dan Beam
On 2014/11/21 20:01:06, asanka wrote: > The objective of the OnDownloadRemoved() notification is to signal ...
6 years, 1 month ago (2014-11-21 20:12:59 UTC) #30
asanka
On 2014/11/21 20:12:59, Dan Beam wrote: > On 2014/11/21 20:01:06, asanka wrote: > > The ...
6 years, 1 month ago (2014-11-21 20:31:48 UTC) #32
Dan Beam
On 2014/11/21 20:31:48, asanka wrote: > On 2014/11/21 20:12:59, Dan Beam wrote: > > On ...
6 years, 1 month ago (2014-11-21 20:41:46 UTC) #33
asanka
On 2014/11/21 20:41:46, Dan Beam wrote: > On 2014/11/21 20:31:48, asanka wrote: > > On ...
6 years, 1 month ago (2014-11-21 21:00:00 UTC) #34
Dan Beam
asanka@: ptal -- did you mean something like this?
6 years ago (2014-11-26 04:13:22 UTC) #35
Dan Beam
ping asanka@
6 years ago (2014-12-01 08:09:44 UTC) #36
Dan Beam
On 2014/12/01 08:09:44, Dan Beam wrote: > ping asanka@ ping asanka@ again
6 years ago (2014-12-02 21:52:37 UTC) #37
asanka
LGTM. Sorry about the delay. https://codereview.chromium.org/722953002/diff/240001/chrome/browser/ui/webui/downloads_dom_handler.cc File chrome/browser/ui/webui/downloads_dom_handler.cc (right): https://codereview.chromium.org/722953002/diff/240001/chrome/browser/ui/webui/downloads_dom_handler.cc#newcode88 chrome/browser/ui/webui/downloads_dom_handler.cc:88: static DownloadsDOMHandlerData* Get(const content::DownloadItem* ...
6 years ago (2014-12-02 23:59:34 UTC) #38
Dan Beam
https://codereview.chromium.org/722953002/diff/240001/chrome/browser/ui/webui/downloads_dom_handler.cc File chrome/browser/ui/webui/downloads_dom_handler.cc (right): https://codereview.chromium.org/722953002/diff/240001/chrome/browser/ui/webui/downloads_dom_handler.cc#newcode88 chrome/browser/ui/webui/downloads_dom_handler.cc:88: static DownloadsDOMHandlerData* Get(const content::DownloadItem* item) { On 2014/12/02 23:59:34, ...
6 years ago (2014-12-03 01:08:25 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/722953002/300001
6 years ago (2014-12-03 02:41:05 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:300001)
6 years ago (2014-12-03 04:09:16 UTC) #44
commit-bot: I haz the power
6 years ago (2014-12-03 04:10:59 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/59b0be74d47f3bccceac31f205e515097079a0fa
Cr-Commit-Position: refs/heads/master@{#306549}

Powered by Google App Engine
This is Rietveld 408576698