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

Issue 2806923002: Don't create parallel request if download is about to complete (Closed)

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

Description

Don't create parallel request if download is about to complete For fast networks, 2MB slice limit maybe too small. This change adds a new requirement that if a download is about to complete, don't create the parallel request. This solves the issue for faster networks. BUG=644352 Review-Url: https://codereview.chromium.org/2806923002 Cr-Commit-Position: refs/heads/master@{#463813} Committed: https://chromium.googlesource.com/chromium/src/+/cbb485045d95ea0934cce5a99e3796d4dcbfb596

Patch Set 1 #

Total comments: 6

Patch Set 2 : nit #

Patch Set 3 : add UMA #

Patch Set 4 : add UMA and finch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -32 lines) Patch
M content/browser/download/download_stats.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/download/parallel_download_job.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/parallel_download_job.cc View 1 2 3 3 chunks +33 lines, -9 lines 0 comments Download
M content/browser/download/parallel_download_job_unittest.cc View 1 2 3 15 chunks +47 lines, -23 lines 0 comments Download
M content/browser/download/parallel_download_utils.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/download/parallel_download_utils.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
qinmin
PTAL
3 years, 8 months ago (2017-04-07 23:40:54 UTC) #2
xingliu
https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job_unittest.cc File content/browser/download/parallel_download_job_unittest.cc (right): https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job_unittest.cc#newcode199 content/browser/download/parallel_download_job_unittest.cc:199: // File size: 100 bytes. nit: Can we add ...
3 years, 8 months ago (2017-04-08 02:21:05 UTC) #3
qinmin
https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job_unittest.cc File content/browser/download/parallel_download_job_unittest.cc (right): https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job_unittest.cc#newcode199 content/browser/download/parallel_download_job_unittest.cc:199: // File size: 100 bytes. On 2017/04/08 02:21:05, xingliu ...
3 years, 8 months ago (2017-04-10 19:04:48 UTC) #4
xingliu
lgtm.
3 years, 8 months ago (2017-04-10 19:05:38 UTC) #5
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/2806923002/20001
3 years, 8 months ago (2017-04-10 19:33:23 UTC) #7
David Trainor- moved to gerrit
https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job.cc#newcode157 content/browser/download/parallel_download_job.cc:157: int64_t current_speed = download_item_->CurrentSpeed() == 0 std::max(1, download_item_->CurrentSpeed())? Also ...
3 years, 8 months ago (2017-04-10 20:10:00 UTC) #8
qinmin
https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2806923002/diff/1/content/browser/download/parallel_download_job.cc#newcode157 content/browser/download/parallel_download_job.cc:157: int64_t current_speed = download_item_->CurrentSpeed() == 0 On 2017/04/10 20:10:00, ...
3 years, 8 months ago (2017-04-10 21:43:39 UTC) #10
qinmin
+isherman for UMA changes
3 years, 8 months ago (2017-04-10 21:43:56 UTC) #12
Ilya Sherman
Metrics LGTM
3 years, 8 months ago (2017-04-10 21:47:42 UTC) #13
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/2806923002/80001
3 years, 8 months ago (2017-04-11 21:25:45 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 22:46:48 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cbb485045d95ea0934cce5a99e37...

Powered by Google App Engine
This is Rietveld 408576698