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

Issue 275011: Make the multiple download request dialog an infobar.... (Closed)

Created:
11 years, 2 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
Nico, sky
CC:
chromium-reviews_googlegroups.com, John Grabowski, Erik does not do reviews, Paul Godavari, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Make the multiple download request dialog an infobar. The icon is a placeholder until Glen makes a pretty one. BUG=24047 TEST=go to skypher.com/SkyLined/Repro/Chrome/carpet bombing/repro.html allow, deny, closing infobar, and closing tab all work as expected Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29006

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : include the infobar #

Patch Set 4 : added placeholder image #

Total comments: 12

Patch Set 5 : unit test #

Total comments: 5

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -495 lines) Patch
A chrome/app/theme/infobar_multiple_downloads.png View 4 Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 2 chunks +2 lines, -1 line 0 comments Download
D chrome/browser/cocoa/download_request_dialog_delegate_mac.h View 1 chunk +0 lines, -43 lines 0 comments Download
D chrome/browser/cocoa/download_request_dialog_delegate_mac.mm View 1 chunk +0 lines, -104 lines 0 comments Download
D chrome/browser/download/download_request_dialog_delegate.h View 1 chunk +0 lines, -57 lines 0 comments Download
D chrome/browser/download/download_request_dialog_delegate_win.h View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/download/download_request_dialog_delegate_win.cc View 1 chunk +0 lines, -60 lines 0 comments Download
A chrome/browser/download/download_request_infobar_delegate.h View 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/download/download_request_infobar_delegate.cc View 3 4 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/download/download_request_infobar_delegate_unittest.cc View 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/browser/download/download_request_manager.h View 1 2 3 4 4 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/download/download_request_manager.cc View 1 2 3 4 7 chunks +11 lines, -17 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_infobar_delegate.cc View 2 chunks +4 lines, -2 lines 0 comments Download
D chrome/browser/gtk/download_request_dialog_delegate_gtk.h View 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/browser/gtk/download_request_dialog_delegate_gtk.cc View 1 chunk +0 lines, -94 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 5 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Evan Stade
waiting on mac/windows trybots.
11 years, 2 months ago (2009-10-13 23:37:38 UTC) #1
Evan Stade
wait. hold off on the review please.
11 years, 2 months ago (2009-10-13 23:39:13 UTC) #2
Evan Stade
ok, updated, pls review
11 years, 2 months ago (2009-10-14 00:12:07 UTC) #3
Nico
LG. If it's not too much of a hassle, please add a basic unit test ...
11 years, 2 months ago (2009-10-14 04:10:02 UTC) #4
Evan Stade
haha, no that icon is mine not Glen's. I thought I put a note about ...
11 years, 2 months ago (2009-10-14 04:42:03 UTC) #5
sky
LGTM with the following changes. http://codereview.chromium.org/275011/diff/4014/7013 File chrome/browser/download/download_request_infobar_delegate.h (right): http://codereview.chromium.org/275011/diff/4014/7013#newcode13 Line 13: class DownloadRequestInfoBarDelegate : ...
11 years, 2 months ago (2009-10-14 14:39:31 UTC) #6
Evan Stade
added unit test. http://codereview.chromium.org/275011/diff/4014/7013 File chrome/browser/download/download_request_infobar_delegate.h (right): http://codereview.chromium.org/275011/diff/4014/7013#newcode13 Line 13: class DownloadRequestInfoBarDelegate : public ConfirmInfoBarDelegate ...
11 years, 2 months ago (2009-10-14 19:07:04 UTC) #7
sky
LGTM
11 years, 2 months ago (2009-10-14 19:29:22 UTC) #8
Nico
Still LG. Thanks for adding the test, and for assorted warning fixes/cleanups along the way ...
11 years, 2 months ago (2009-10-14 19:34:18 UTC) #9
Evan Stade
11 years, 2 months ago (2009-10-14 19:39:54 UTC) #10
http://codereview.chromium.org/275011/diff/3004/3016
File chrome/browser/download/download_request_infobar_delegate.cc (right):

http://codereview.chromium.org/275011/diff/3004/3016#newcode26
Line 26: // This will delete us.
On 2009/10/14 19:34:19, Nico wrote:
> Not clear which of the two lines this refers to.

comments always precede the code they refer to.

http://codereview.chromium.org/275011/diff/3004/3020
File chrome/browser/download/download_request_infobar_delegate_unittest.cc
(right):

http://codereview.chromium.org/275011/diff/3004/3020#newcode57
Line 57: infobar.Cancel();
On 2009/10/14 19:34:19, Nico wrote:
> EXPECT_TRUE(state.responded()) too

that's covered by the MockTabDownloadState destructor.

Powered by Google App Engine
This is Rietveld 408576698