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

Issue 10867065: Remove DownloadFileManager in favor of direct ownership of DownloadFiles. (Closed)

Created:
8 years, 4 months ago by Randy Smith (Not in Mondays)
Modified:
8 years, 3 months ago
Reviewers:
benjhayden, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, rginda+watch_chromium.org, jam, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Remove DownloadFileManager in favor of direct ownership of DownloadFiles. This CL is equivalent to CLs http://codereview.chromium.org/10799005, http://codereview.chromium.org/10836293, and https://chromiumcodereview.appspot.com/10823406, which were previous attempts to land the same functionality. TBR=jam@chromium.org BUG=123998 BUG=144751 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153563

Patch Set 1 #

Patch Set 2 : Fixed SavePageBrowserTest to always wait for DI to be persisted." #

Total comments: 2

Patch Set 3 : Incorporated comments and added bounce off DB thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1241 lines, -1714 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 14 chunks +102 lines, -17 lines 0 comments Download
M content/browser/browser_context.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/browser_main_loop.cc View 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/download/base_file.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/base_file.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_file.h View 4 chunks +13 lines, -11 lines 0 comments Download
A content/browser/download/download_file_factory.h View 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/download/download_file_factory.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.h View 5 chunks +22 lines, -25 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 8 chunks +65 lines, -64 lines 0 comments Download
D content/browser/download/download_file_manager.h View 1 chunk +0 lines, -180 lines 0 comments Download
D content/browser/download/download_file_manager.cc View 1 chunk +0 lines, -227 lines 0 comments Download
D content/browser/download/download_file_manager_unittest.cc View 1 chunk +0 lines, -413 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 16 chunks +66 lines, -83 lines 0 comments Download
M content/browser/download/download_item_impl.h View 9 chunks +45 lines, -16 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 18 chunks +199 lines, -45 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.h View 1 chunk +12 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 22 chunks +165 lines, -78 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 10 chunks +25 lines, -28 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 21 chunks +62 lines, -172 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 19 chunks +100 lines, -82 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/mock_download_file.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/download/mock_download_file.cc View 1 chunk +10 lines, -2 lines 0 comments Download
M content/browser/download/save_package.cc View 8 chunks +46 lines, -15 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.h View 3 chunks +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 2 chunks +1 line, -3 lines 0 comments Download
M content/content_browser.gypi View 2 chunks +3 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +0 lines, -1 line 0 comments Download
A content/public/browser/download_destination_observer.h View 1 chunk +37 lines, -0 lines 0 comments Download
M content/public/browser/download_manager.h View 1 chunk +0 lines, -23 lines 0 comments Download
M content/public/test/mock_download_manager.h View 1 chunk +2 lines, -12 lines 0 comments Download
M content/public/test/test_file_error_injector.h View 6 chunks +18 lines, -16 lines 0 comments Download
M content/public/test/test_file_error_injector.cc View 13 chunks +152 lines, -170 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Randy Smith (Not in Mondays)
TBRing John as before. Ben, WDYT? PS1 is the last landed CL, PS1-PS2 the changes ...
8 years, 4 months ago (2012-08-25 15:20:30 UTC) #1
benjhayden
LGTM, one suggestion https://chromiumcodereview.appspot.com/10867065/diff/2001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): https://chromiumcodereview.appspot.com/10867065/diff/2001/chrome/browser/download/save_page_browsertest.cc#newcode231 chrome/browser/download/save_page_browsertest.cc:231: void WaitForPersistedDownloadItem() const { Why not ...
8 years, 3 months ago (2012-08-26 16:17:03 UTC) #2
Randy Smith (Not in Mondays)
As mentioned verbally, also added bounce off the DB thread in order to flush updates ...
8 years, 3 months ago (2012-08-27 15:02:50 UTC) #3
benjhayden
Do you want to run all the downloads and save page tests locally 100 times ...
8 years, 3 months ago (2012-08-27 15:11:10 UTC) #4
Randy Smith (Not in Mondays)
On 2012/08/27 15:11:10, benjhayden_chromium wrote: > Do you want to run all the downloads and ...
8 years, 3 months ago (2012-08-27 15:35:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10867065/7001
8 years, 3 months ago (2012-08-27 17:54:56 UTC) #6
Randy Smith (Not in Mondays)
<groundhog day>rdsmith@ is submitting a CL to remove DownloadFileManager</groundhog day>.
8 years, 3 months ago (2012-08-27 17:55:33 UTC) #7
commit-bot: I haz the power
8 years, 3 months ago (2012-08-27 22:27:25 UTC) #8
Change committed as 153563

Powered by Google App Engine
This is Rietveld 408576698