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

Issue 8697006: DownloadManager intereface refactoring to allow cleaner DownloadItem unit tests. (Closed)

Created:
9 years ago by Randy Smith (Not in Mondays)
Modified:
9 years ago
Reviewers:
cbentzel, jam, ahendrickson
CC:
chromium-reviews, kkania, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, robertshield, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, Cris Neckar
Visibility:
Public.

Description

DownloadManager intereface refactoring to allow cleaner DownloadItem unit tests. BUG=101214 BUG=106490 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113007 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113277

Patch Set 1 #

Patch Set 2 : Fixed glitch in one file. #

Patch Set 3 : Another glitch fix. #

Patch Set 4 : Sync'd to LKGR. #

Patch Set 5 : Got most tests running. #

Patch Set 6 : Improved isolation of MockDownloadManager. #

Total comments: 18

Patch Set 7 : Incorporated comments. #

Patch Set 8 : Sync'd to LKGR. #

Total comments: 14

Patch Set 9 : Incorporated comments. #

Patch Set 10 : Merged to LKGR. #

Total comments: 4

Patch Set 11 : Added cosmetic line. #

Patch Set 12 : Merged to LKGR. #

Patch Set 13 : Recreated patch at LKGR. #

Patch Set 14 : Added CONTENT_EXPORT to delegate. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -234 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_item_unittest.cc View 1 2 3 4 5 6 7 4 chunks +43 lines, -23 lines 0 comments Download
M chrome/browser/download/download_prefs.h View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/download/download_shelf_context_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/download/download_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +12 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +67 lines, -8 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 24 chunks +61 lines, -36 lines 0 comments Download
M content/browser/download/download_manager.h View 1 2 3 4 5 6 7 5 chunks +14 lines, -47 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 7 chunks +34 lines, -15 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 15 chunks +47 lines, -29 lines 0 comments Download
M content/browser/download/mock_download_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/download/mock_download_manager.h View 1 2 3 4 5 6 7 5 chunks +9 lines, -13 lines 0 comments Download
M content/browser/download/mock_download_manager.cc View 1 2 3 4 5 6 7 7 chunks +12 lines, -45 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -10 lines 0 comments Download
M content/public/browser/download_manager_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
Randy Smith (Not in Mondays)
This allows much cleaner, more self-contained unit tests for download item (as shown in download_item_unittest.cc); ...
9 years ago (2011-11-28 20:15:35 UTC) #1
cbentzel
May not get to it soon since memory sheriff is busy. Note that you have ...
9 years ago (2011-11-29 18:31:44 UTC) #2
cbentzel
I didn't look in detail - was more focused on the overall classes. I like ...
9 years ago (2011-11-29 21:30:43 UTC) #3
ahendrickson
LGTM, with nits. http://codereview.chromium.org/8697006/diff/8017/chrome/browser/download/download_prefs.cc File chrome/browser/download/download_prefs.cc (right): http://codereview.chromium.org/8697006/diff/8017/chrome/browser/download/download_prefs.cc#newcode114 chrome/browser/download/download_prefs.cc:114: ChromeDownloadManagerDelegate* delegate = This part should ...
9 years ago (2011-11-29 21:40:15 UTC) #4
Randy Smith (Not in Mondays)
Incorporated comments; PTAL. http://codereview.chromium.org/8697006/diff/8017/chrome/browser/download/download_prefs.cc File chrome/browser/download/download_prefs.cc (right): http://codereview.chromium.org/8697006/diff/8017/chrome/browser/download/download_prefs.cc#newcode114 chrome/browser/download/download_prefs.cc:114: ChromeDownloadManagerDelegate* delegate = On 2011/11/29 21:40:15, ...
9 years ago (2011-11-30 22:44:04 UTC) #5
cbentzel
LGTM for what this CL is. I think there are a number of issues which ...
9 years ago (2011-12-02 18:00:52 UTC) #6
Randy Smith (Not in Mondays)
Chris: One question below about how I implemented Attach/Detach (and enough extra code around Attach/Detach ...
9 years ago (2011-12-02 20:04:12 UTC) #7
cbentzel
LGTM I agree that many of my suggestions could be tabled for later. As long ...
9 years ago (2011-12-02 20:12:56 UTC) #8
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8697006/diff/24001/content/browser/download/download_item_impl.h File content/browser/download/download_item_impl.h (right): http://codereview.chromium.org/8697006/diff/24001/content/browser/download/download_item_impl.h#newcode52 content/browser/download/download_item_impl.h:52: void Attach(); On 2011/12/02 20:12:56, cbentzel wrote: > I ...
9 years ago (2011-12-02 20:26:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8697006/21002
9 years ago (2011-12-02 20:27:01 UTC) #10
commit-bot: I haz the power
Presubmit check for 8697006-21002 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-02 20:27:11 UTC) #11
jam
content/public lgtm
9 years ago (2011-12-02 20:40:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8697006/21002
9 years ago (2011-12-02 20:41:04 UTC) #13
commit-bot: I haz the power
Try job failure for 8697006-21002 (retry) on win_rel for step "browser_tests". It's a second try, ...
9 years ago (2011-12-02 22:52:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8697006/29001
9 years ago (2011-12-05 17:17:43 UTC) #15
commit-bot: I haz the power
Change committed as 113007
9 years ago (2011-12-05 20:29:56 UTC) #16
Cris Neckar
On 2011/12/05 20:29:56, I haz the power (commit-bot) wrote: > Change committed as 113007 This ...
9 years ago (2011-12-06 00:30:21 UTC) #17
Randy Smith (Not in Mondays)
On 2011/12/06 00:30:21, Cris Neckar wrote: > On 2011/12/05 20:29:56, I haz the power (commit-bot) ...
9 years ago (2011-12-06 14:45:44 UTC) #18
Randy Smith (Not in Mondays)
On 2011/12/06 14:45:44, rdsmith wrote: > On 2011/12/06 00:30:21, Cris Neckar wrote: > > On ...
9 years ago (2011-12-06 14:50:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8697006/37001
9 years ago (2011-12-06 18:21:57 UTC) #20
commit-bot: I haz the power
9 years ago (2011-12-06 23:28:14 UTC) #21
Change committed as 113277

Powered by Google App Engine
This is Rietveld 408576698