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

Issue 2782033002: remove is_sparse_file_ from DownloadFileImpl (Closed)

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

Description

remove is_sparse_file_ from DownloadFileImpl |received_slices_| vector and |source_streams_| can both tell whether the file is sparse. For non parallel download, received_slices_ vector is always empty If a writer is added, we will start constructing that vector. BUG=644352 Review-Url: https://codereview.chromium.org/2782033002 Cr-Commit-Position: refs/heads/master@{#460749} Committed: https://chromium.googlesource.com/chromium/src/+/6be2821a3321d1a56d1c2b0424903c0015fb4590

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix tests #

Patch Set 3 : add IsSparseFile() helper method #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -45 lines) Patch
M content/browser/download/base_file.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/download/download_file_factory.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_file_impl.h View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 10 chunks +30 lines, -25 lines 3 comments Download
M content/browser/download/download_file_unittest.cc View 6 chunks +5 lines, -9 lines 0 comments Download
M content/public/test/test_file_error_injector.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 34 (24 generated)
qinmin
PTAL
3 years, 8 months ago (2017-03-28 22:44:25 UTC) #2
David Trainor- moved to gerrit
lgtm % pulling out helper method. https://codereview.chromium.org/2782033002/diff/1/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2782033002/diff/1/content/browser/download/download_file_impl.cc#newcode142 content/browser/download/download_file_impl.cc:142: received_slices_.size() > 0); ...
3 years, 8 months ago (2017-03-28 23:58:50 UTC) #3
qinmin
+phajdan.jr for content/public/test OWNER. phajdan.jr@, would you please take a look at this 1 line ...
3 years, 8 months ago (2017-03-29 19:16:25 UTC) #19
xingliu
lgtm with nit% https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc#newcode404 content/browser/download/download_file_impl.cc:404: AddNewSlice(source_stream->offset(), bytes_to_write); nit%: I might not ...
3 years, 8 months ago (2017-03-29 20:14:02 UTC) #22
qinmin
https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc#newcode404 content/browser/download/download_file_impl.cc:404: AddNewSlice(source_stream->offset(), bytes_to_write); On 2017/03/29 20:14:02, xingliu wrote: > nit%: ...
3 years, 8 months ago (2017-03-29 20:44:08 UTC) #25
xingliu
https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc File content/browser/download/download_file_impl.cc (right): https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc#newcode404 content/browser/download/download_file_impl.cc:404: AddNewSlice(source_stream->offset(), bytes_to_write); On 2017/03/29 20:44:08, qinmin wrote: > On ...
3 years, 8 months ago (2017-03-29 21:06:28 UTC) #26
qinmin
On 2017/03/29 21:06:28, xingliu wrote: > https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc > File content/browser/download/download_file_impl.cc (right): > > https://codereview.chromium.org/2782033002/diff/80001/content/browser/download/download_file_impl.cc#newcode404 > ...
3 years, 8 months ago (2017-03-29 21:19:30 UTC) #27
Paweł Hajdan Jr.
LGTM
3 years, 8 months ago (2017-03-30 08:03:38 UTC) #28
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/2782033002/80001
3 years, 8 months ago (2017-03-30 14:17:37 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 14:23:11 UTC) #34
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/6be2821a3321d1a56d1c2b042490...

Powered by Google App Engine
This is Rietveld 408576698