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

Issue 2738063002: Verify that all slice are downloaded when a stream complete (Closed)

Created:
3 years, 9 months ago by qinmin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asanka, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Verify that all slice are downloaded when a stream complete To determine if a download finishes, we check if all streams are completed. However, some of the byte streams might not have been added to DownloadFileImpl. As a result, this CL checks if all the slices are written. BUG=644352 Review-Url: https://codereview.chromium.org/2738063002 Cr-Commit-Position: refs/heads/master@{#456903} Committed: https://chromium.googlesource.com/chromium/src/+/9c8aefe72593bb63ccc20dd34fae9ea034b3d709

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix bug #

Total comments: 7

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -13 lines) Patch
M content/browser/download/download_file_impl.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 2 chunks +43 lines, -11 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
qinmin
PTAL
3 years, 9 months ago (2017-03-08 23:51:42 UTC) #2
David Trainor- moved to gerrit
https://codereview.chromium.org/2738063002/diff/1/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2738063002/diff/1/content/browser/download/download_file_impl.cc#newcode429 content/browser/download/download_file_impl.cc:429: int64_t last_slice_offset = 0; You need to set this ...
3 years, 9 months ago (2017-03-09 17:23:11 UTC) #3
qinmin
https://codereview.chromium.org/2738063002/diff/1/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2738063002/diff/1/content/browser/download/download_file_impl.cc#newcode429 content/browser/download/download_file_impl.cc:429: int64_t last_slice_offset = 0; On 2017/03/09 17:23:10, David Trainor-ping ...
3 years, 9 months ago (2017-03-09 17:42:25 UTC) #4
xingliu
https://codereview.chromium.org/2738063002/diff/20001/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2738063002/diff/20001/content/browser/download/download_file_impl.cc#newcode445 content/browser/download/download_file_impl.cc:445: std::vector<DownloadItem::ReceivedSlice> slices_to_download = So if we do this, source_streams_ ...
3 years, 9 months ago (2017-03-09 21:24:24 UTC) #5
qinmin
https://codereview.chromium.org/2738063002/diff/20001/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2738063002/diff/20001/content/browser/download/download_file_impl.cc#newcode445 content/browser/download/download_file_impl.cc:445: std::vector<DownloadItem::ReceivedSlice> slices_to_download = On 2017/03/09 21:24:23, xingliu wrote: > ...
3 years, 9 months ago (2017-03-09 21:58:42 UTC) #6
xingliu
lgtm with nits%. Some thoughts on the criteria to check the last slice. I think ...
3 years, 9 months ago (2017-03-10 00:46:22 UTC) #11
qinmin
For the failing tests, this CL depends on https://codereview.chromium.org/2737033002/ to fix them. As that change ...
3 years, 9 months ago (2017-03-10 07:11:27 UTC) #12
xingliu
If parallel download unit tests are still broken, we probably can disable them at the ...
3 years, 9 months ago (2017-03-10 18:17:03 UTC) #13
qinmin
On 2017/03/10 18:17:03, xingliu wrote: > If parallel download unit tests are still broken, we ...
3 years, 9 months ago (2017-03-10 18:28:48 UTC) #14
qinmin
On 2017/03/10 18:28:48, qinmin wrote: > On 2017/03/10 18:17:03, xingliu wrote: > > If parallel ...
3 years, 9 months ago (2017-03-10 18:29:33 UTC) #15
David Trainor- moved to gerrit
lgtm
3 years, 9 months ago (2017-03-14 15:15:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2738063002/40001
3 years, 9 months ago (2017-03-14 22:28:14 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 00:07:17 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9c8aefe72593bb63ccc20dd34fae...

Powered by Google App Engine
This is Rietveld 408576698