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

Issue 10950015: Shift "commit point" for when a download will no longer accept cancels. (Closed)

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

Description

Shift "commit point" for when a download will no longer accept cancels. This CL shifts the commit point for a download to just after the download file release has been dispatched. The download remains IN_PROGRESS as far as the outside world is concerned, but at this point it is committed to continue to completion. BUG=123998 R=benjhayden@chromium.org R=asanka@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158298

Patch Set 1 #

Patch Set 2 : Sync'd to LKGR (157436) #

Total comments: 26

Patch Set 3 : Incorporated comments. #

Total comments: 12

Patch Set 4 : Incorporated Asanka's comments. #

Patch Set 5 : Sync'd to LKGR. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+675 lines, -205 lines) Patch
M content/browser/download/download_browsertest.cc View 5 chunks +320 lines, -15 lines 0 comments Download
M content/browser/download/download_file.h View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
A content/browser/download/download_file_factory.h View 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/download/download_file_factory.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 chunks +16 lines, -4 lines 0 comments Download
M content/browser/download/download_file_manager.h View 4 chunks +6 lines, -16 lines 0 comments Download
M content/browser/download/download_file_manager.cc View 1 2 3 2 chunks +3 lines, -47 lines 0 comments Download
M content/browser/download/download_file_manager_unittest.cc View 1 2 3 5 chunks +6 lines, -8 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 3 chunks +39 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 26 chunks +121 lines, -52 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/download/download_net_log_parameters.h View 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/download/download_net_log_parameters.cc View 2 chunks +12 lines, -3 lines 0 comments Download
M content/browser/download/mock_download_file.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/mock_download_file.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/test_file_error_injector.cc View 7 chunks +53 lines, -45 lines 0 comments Download
M content/shell/shell_download_manager_delegate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/base/net_log_event_type_list.h View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Randy Smith (Not in Mondays)
Ben, Asanka: Could you both take a look? This pulls the "commit point" shift out ...
8 years, 3 months ago (2012-09-18 21:58:55 UTC) #1
benjhayden
http://codereview.chromium.org/10950015/diff/4001/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): http://codereview.chromium.org/10950015/diff/4001/content/browser/download/download_file_impl.cc#newcode142 content/browser/download/download_file_impl.cc:142: BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback); Seems like there should be a ...
8 years, 3 months ago (2012-09-19 15:44:35 UTC) #2
Randy Smith (Not in Mondays)
Many of my responses boil down to "If it's not centrally part of this CL, ...
8 years, 3 months ago (2012-09-19 20:46:39 UTC) #3
benjhayden
lgtm
8 years, 3 months ago (2012-09-19 21:06:05 UTC) #4
asanka
http://codereview.chromium.org/10950015/diff/8002/content/browser/download/download_file.h File content/browser/download/download_file.h (right): http://codereview.chromium.org/10950015/diff/8002/content/browser/download/download_file.h#newcode39 content/browser/download/download_file.h:39: virtual content::DownloadInterruptReason Initialize() = 0; Nit: No content:: namespace ...
8 years, 3 months ago (2012-09-20 18:42:15 UTC) #5
Randy Smith (Not in Mondays)
Asanka, PTAL? http://codereview.chromium.org/10950015/diff/8002/content/browser/download/download_file.h File content/browser/download/download_file.h (right): http://codereview.chromium.org/10950015/diff/8002/content/browser/download/download_file.h#newcode39 content/browser/download/download_file.h:39: virtual content::DownloadInterruptReason Initialize() = 0; On 2012/09/20 ...
8 years, 3 months ago (2012-09-21 21:58:01 UTC) #6
asanka
LGTM Thanks!
8 years, 3 months ago (2012-09-21 22:09:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10950015/25002
8 years, 3 months ago (2012-09-24 15:00:45 UTC) #8
commit-bot: I haz the power
Presubmit check for 10950015-25002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-24 15:00:55 UTC) #9
Randy Smith (Not in Mondays)
Avi: Willing to give a quick skim and stamp for the non-content/browser/download directories?
8 years, 3 months ago (2012-09-24 15:05:57 UTC) #10
Avi (use Gerrit)
lgtm
8 years, 3 months ago (2012-09-24 15:09:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10950015/25002
8 years, 3 months ago (2012-09-24 15:55:33 UTC) #12
commit-bot: I haz the power
8 years, 3 months ago (2012-09-24 17:13:46 UTC) #13
Change committed as 158298

Powered by Google App Engine
This is Rietveld 408576698