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

Issue 6096003: Put history insertion for downloads processing inline. (Closed)

Created:
9 years, 12 months ago by Randy Smith (Not in Mondays)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Put history insertion for downloads processing inline. This change shifts standard download processing to wait on history insertion (note that actual data download does not wait). This makes the download process less racy and is expected to make the download tests less flaky. Note that it also brings the rename to the download intermediate file rename inline into standard download processing; i.e. now we always rename to the intermediate file name and then to the final file name. This again reduces raciness and possibly tset flakiness. BUG=63237 TEST=All current download tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72301

Patch Set 1 #

Total comments: 16

Patch Set 2 : Incorporated latest round of comments. #

Total comments: 8

Patch Set 3 : Incorporated comments, fixed bugs. #

Total comments: 9

Patch Set 4 : Incorporated comments, fixed windows int64->int compile error. #

Total comments: 2

Patch Set 5 : Split state and data reception changes, got rid of pending_finished_downloads_. #

Total comments: 8

Patch Set 6 : Incorporated Pawel's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -106 lines) Patch
M chrome/browser/download/download_item.h View 1 2 3 4 5 4 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/download/download_item.cc View 1 2 3 4 5 6 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 9 chunks +94 lines, -87 lines 0 comments Download
M chrome/browser/download/download_manager_unittest.cc View 1 2 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Randy Smith (Not in Mondays)
Hey, folks, could you take a look at this change? I'm hopefully it'll be a ...
9 years, 12 months ago (2010-12-27 23:08:11 UTC) #1
ahendrickson
On 2010/12/27 23:08:11, rdsmith wrote: > Hey, folks, could you take a look at this ...
9 years, 12 months ago (2010-12-29 15:37:29 UTC) #2
Randy Smith (Not in Mondays)
On 2010/12/29 15:37:29, ahendrickson wrote: > Basically, LGTM, but it has problems with DownloadRenameTest. Yep, ...
9 years, 12 months ago (2010-12-29 16:00:19 UTC) #3
Paweł Hajdan Jr.
http://codereview.chromium.org/6096003/diff/1/chrome/browser/download/download_item.cc File chrome/browser/download/download_item.cc (right): http://codereview.chromium.org/6096003/diff/1/chrome/browser/download/download_item.cc#newcode30 chrome/browser/download/download_item.cc:30: // The lifecycle of a DownloadItem under normal conditions: ...
9 years, 11 months ago (2011-01-03 09:43:02 UTC) #4
Randy Smith (Not in Mondays)
Incorporated Pawel's comments; waiting for LGTMs from Pawel and Brett. Also still need to get ...
9 years, 11 months ago (2011-01-04 19:29:21 UTC) #5
Paweł Hajdan Jr.
Only minor comments. http://codereview.chromium.org/6096003/diff/9001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/6096003/diff/9001/chrome/browser/download/download_manager.cc#newcode522 chrome/browser/download/download_manager.cc:522: // linear, so we can simply ...
9 years, 11 months ago (2011-01-05 07:46:30 UTC) #6
Randy Smith (Not in Mondays)
Ok, here's (what I hope is :-}) the final upload for this patch. The tests ...
9 years, 11 months ago (2011-01-13 02:13:24 UTC) #7
ahendrickson
http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc#newcode495 chrome/browser/download/download_manager.cc:495: UpdateAppIcon(); // Reflect size updates. Why not set a ...
9 years, 11 months ago (2011-01-13 03:15:17 UTC) #8
Paweł Hajdan Jr.
http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc#newcode558 chrome/browser/download/download_manager.cc:558: download->OnAllDataSaved(size); On 2011/01/13 03:15:17, ahendrickson wrote: > It seems ...
9 years, 11 months ago (2011-01-13 08:43:10 UTC) #9
Randy Smith (Not in Mondays)
Round n+1 :-}. Just about all tests pass, though I'm occasionally seeing 69460 (which I'll ...
9 years, 11 months ago (2011-01-16 20:43:56 UTC) #10
Paweł Hajdan Jr.
http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc#newcode558 chrome/browser/download/download_manager.cc:558: download->OnAllDataSaved(size); On 2011/01/16 20:43:56, rdsmith wrote: > I've changed ...
9 years, 11 months ago (2011-01-17 18:13:23 UTC) #11
Randy Smith (Not in Mondays)
http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/6096003/diff/17001/chrome/browser/download/download_manager.cc#newcode558 chrome/browser/download/download_manager.cc:558: download->OnAllDataSaved(size); On 2011/01/17 18:13:23, Paweł Hajdan Jr. wrote: > ...
9 years, 11 months ago (2011-01-17 19:56:17 UTC) #12
Paweł Hajdan Jr.
On 2011/01/17 19:56:17, rdsmith wrote: > I thought about moving download->OnAllDataSaved() back into > DownloadManager::OnAllDataSaved() ...
9 years, 11 months ago (2011-01-18 17:28:15 UTC) #13
Randy Smith (Not in Mondays)
On 2011/01/18 17:28:15, Paweł Hajdan Jr. wrote: > On 2011/01/17 19:56:17, rdsmith wrote: > > ...
9 years, 11 months ago (2011-01-18 21:08:04 UTC) #14
Randy Smith (Not in Mondays)
Next round. I hope I've address Pawel's concerns. I also extended some of the changes ...
9 years, 11 months ago (2011-01-18 22:32:46 UTC) #15
Paweł Hajdan Jr.
http://codereview.chromium.org/6096003/diff/33002/chrome/browser/download/download_item.cc File chrome/browser/download/download_item.cc (right): http://codereview.chromium.org/6096003/diff/33002/chrome/browser/download/download_item.cc#newcode321 chrome/browser/download/download_item.cc:321: void DownloadItem::OnDataReceptionAccepted() { This is another ambiguous name that ...
9 years, 11 months ago (2011-01-19 17:16:15 UTC) #16
Randy Smith (Not in Mondays)
Next round. http://codereview.chromium.org/6096003/diff/33002/chrome/browser/download/download_item.cc File chrome/browser/download/download_item.cc (right): http://codereview.chromium.org/6096003/diff/33002/chrome/browser/download/download_item.cc#newcode321 chrome/browser/download/download_item.cc:321: void DownloadItem::OnDataReceptionAccepted() { On 2011/01/19 17:16:15, Paweł ...
9 years, 11 months ago (2011-01-19 19:53:03 UTC) #17
Paweł Hajdan Jr.
LGTM, thank you for patience.
9 years, 11 months ago (2011-01-19 20:38:03 UTC) #18
ahendrickson
LGTM.
9 years, 11 months ago (2011-01-19 21:17:35 UTC) #19
brettw
9 years, 11 months ago (2011-01-19 21:58:28 UTC) #20
I just looked at a high level, LGTM.

Powered by Google App Engine
This is Rietveld 408576698