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

Issue 966983002: downloads: clicking "remove" on chrome://downloads should also hide shelf item. (Closed)

Created:
5 years, 9 months ago by Dan Beam
Modified:
5 years, 9 months ago
Reviewers:
asanka, Nico
CC:
asanka, benjhayden+dwatch_chromium.org, chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

downloads: clicking "remove" on chrome://downloads should hide the shelf item. R=asanka@chromium.org BUG=442666 Committed: https://crrev.com/2faad5a1a60b12829037c64ce5786b8017b602db Cr-Commit-Position: refs/heads/master@{#318788}

Patch Set 1 #

Total comments: 1

Patch Set 2 : probably more like this #

Total comments: 3

Patch Set 3 : slimmer #

Total comments: 9

Patch Set 4 : +tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -61 lines) Patch
M chrome/browser/download/download_ui_controller.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_mac.mm View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 8 chunks +28 lines, -55 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc View 1 2 3 4 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Dan Beam
5 years, 9 months ago (2015-02-28 00:28:24 UTC) #1
asanka
If the removal state is common across UIs, shall we move it into DownloadItemModel? Then ...
5 years, 9 months ago (2015-02-28 00:58:52 UTC) #2
Dan Beam
On 2015/02/28 00:58:52, asanka wrote: > If the removal state is common across UIs, shall ...
5 years, 9 months ago (2015-02-28 01:05:51 UTC) #3
Dan Beam
check out updated code https://codereview.chromium.org/966983002/diff/40001/chrome/browser/download/download_ui_controller.h File chrome/browser/download/download_ui_controller.h (left): https://codereview.chromium.org/966983002/diff/40001/chrome/browser/download/download_ui_controller.h#oldcode37 chrome/browser/download/download_ui_controller.h:37: scoped_ptr<Delegate> delegate); I can do ...
5 years, 9 months ago (2015-02-28 04:46:04 UTC) #4
Dan Beam
https://codereview.chromium.org/966983002/diff/40001/chrome/browser/download/download_ui_controller.h File chrome/browser/download/download_ui_controller.h (left): https://codereview.chromium.org/966983002/diff/40001/chrome/browser/download/download_ui_controller.h#oldcode37 chrome/browser/download/download_ui_controller.h:37: scoped_ptr<Delegate> delegate); On 2015/02/28 04:46:04, Dan Beam wrote: > ...
5 years, 9 months ago (2015-02-28 07:10:27 UTC) #5
Dan Beam
i'll add thakis@ for OWNERS when you're satisfied https://codereview.chromium.org/966983002/diff/40001/chrome/browser/download/download_ui_controller.h File chrome/browser/download/download_ui_controller.h (left): https://codereview.chromium.org/966983002/diff/40001/chrome/browser/download/download_ui_controller.h#oldcode37 chrome/browser/download/download_ui_controller.h:37: scoped_ptr<Delegate> ...
5 years, 9 months ago (2015-03-02 18:50:10 UTC) #8
asanka
lgtm. Thanks for the cleanup! https://codereview.chromium.org/966983002/diff/80001/chrome/browser/ui/cocoa/download/download_item_mac.mm File chrome/browser/ui/cocoa/download/download_item_mac.mm (right): https://codereview.chromium.org/966983002/diff/80001/chrome/browser/ui/cocoa/download/download_item_mac.mm#newcode45 chrome/browser/ui/cocoa/download/download_item_mac.mm:45: if (!download_model_.ShouldShowInShelf()) { Nit: ...
5 years, 9 months ago (2015-03-02 21:49:34 UTC) #9
Dan Beam
added a little more testing https://codereview.chromium.org/966983002/diff/80001/chrome/browser/ui/cocoa/download/download_item_mac.mm File chrome/browser/ui/cocoa/download/download_item_mac.mm (right): https://codereview.chromium.org/966983002/diff/80001/chrome/browser/ui/cocoa/download/download_item_mac.mm#newcode45 chrome/browser/ui/cocoa/download/download_item_mac.mm:45: if (!download_model_.ShouldShowInShelf()) { On ...
5 years, 9 months ago (2015-03-02 22:04:08 UTC) #10
asanka
still lgtm!
5 years, 9 months ago (2015-03-02 22:07:21 UTC) #11
Dan Beam
+thakis@ for OWNERS (saw you in c/b/ui/cocoa/download so you're the lucky winner!)
5 years, 9 months ago (2015-03-02 22:10:30 UTC) #13
Nico
rs-lgtm asanka, you should make yourself an owner of the mac download code if you ...
5 years, 9 months ago (2015-03-02 22:12:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/966983002/100001
5 years, 9 months ago (2015-03-02 22:16:15 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:100001)
5 years, 9 months ago (2015-03-02 22:49:39 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 22:51:03 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2faad5a1a60b12829037c64ce5786b8017b602db
Cr-Commit-Position: refs/heads/master@{#318788}

Powered by Google App Engine
This is Rietveld 408576698