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

Issue 3071005: Download code cleanup patch of death: (Closed)

Created:
10 years, 5 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paul Godavari, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Download code cleanup patch of death: Separate all interactions with HistoryService out of DownloadManager to new class DownloadHistory owned by the DownloadManager. The goal is to create more smaller classes with clearly defined responsibilities. TEST=unit_tests, browser_tests, ui_tests BUG=48913 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54205

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixes for Brett's comments #

Total comments: 2

Patch Set 3 : inline the dtor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -372 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 4 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.h View 1 3 chunks +3 lines, -23 lines 0 comments Download
M chrome/browser/dom_ui/downloads_dom_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/downloads_dom_handler.cc View 1 2 3 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/dom_ui/filebrowse_ui.cc View 2 chunks +4 lines, -2 lines 0 comments Download
A chrome/browser/download/download_history.h View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/download/download_history.cc View 1 2 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/download/download_item.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/download/download_manager.h View 12 chunks +16 lines, -65 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 20 chunks +46 lines, -246 lines 0 comments Download
M chrome/browser/download/drag_download_file.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/download/drag_download_file.cc View 1 chunk +6 lines, -10 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/ui_test_utils.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Paweł Hajdan Jr.
Please review: ahendrickson: download code brettw: interaction with HistoryService darin: download code nirnimesh: AutomationProvider changes ...
10 years, 5 months ago (2010-07-28 00:45:35 UTC) #1
Nirnimesh
AutomationProvider changes LGTM
10 years, 5 months ago (2010-07-28 01:07:04 UTC) #2
brettw
LGTM http://codereview.chromium.org/3071005/diff/1/3 File chrome/browser/automation/automation_provider_observers.h (right): http://codereview.chromium.org/3071005/diff/1/3#newcode663 chrome/browser/automation/automation_provider_observers.h:663: : public PasswordStoreConsumer { Nit: this should be ...
10 years, 4 months ago (2010-07-28 16:48:40 UTC) #3
ahendrickson
LGTM, with a minor nit. http://codereview.chromium.org/3071005/diff/8001/4007 File chrome/browser/download/download_history.cc (right): http://codereview.chromium.org/3071005/diff/8001/4007#newcode13 chrome/browser/download/download_history.cc:13: DownloadHistory::DownloadItemMapper::~DownloadItemMapper() { Do you ...
10 years, 4 months ago (2010-07-28 21:20:58 UTC) #4
Paweł Hajdan Jr.
Darin: ping (no problem if the review is longer due to complicated patch; just making ...
10 years, 4 months ago (2010-07-29 17:25:20 UTC) #5
darin (slow to review)
10 years, 4 months ago (2010-07-29 21:46:17 UTC) #6
LGTM, nice refactoring!

http://codereview.chromium.org/3071005/diff/8001/4008
File chrome/browser/download/download_history.h (right):

http://codereview.chromium.org/3071005/diff/8001/4008#newcode28
chrome/browser/download/download_history.h:28: virtual ~DownloadItemMapper();
nit: i don't think there's any value in having this destructor implemented in
the .cc file.  this abstract class has no members.  the dtor is a no-op.  just
declare inline here.

Powered by Google App Engine
This is Rietveld 408576698