Revert "Download: Fix an issue that download percentage can move backwards."
This reverts commit 30c71bac. Reason for revert: This CL needs to be cherry picked to m68 branch, but some testing function is changed in other CLs and breaks the build. So I'll revert this for now, check in a CL with production code only, and later land another for test. Original change's description: > Download: Fix an issue that download percentage can move backwards. > > On certain Android devices, when disconnecting from WIFI, the network > code will report NETWORK_TIMEOUT before NETWORK_DISCONNECT and trigger > auto download resumption. And we erase the data downloaded by parallel > requests, so the download percentage will go backwards. > > Instead, we should keep the slice info when resume with an error. > > Bug: 837128 > Change-Id: I002c69ac4d5e1c33133e4dbddd44c3c5173a494e > Reviewed-on: https://chromium-review.googlesource.com/1112754 > Reviewed-by: David Trainor <dtrainor@chromium.org> > Reviewed-by: Min Qin <qinmin@chromium.org> > Commit-Queue: Xing Liu <xingliu@chromium.org> > Cr-Commit-Position: refs/heads/master@{#571286} TBR=dtrainor@chromium.org,qinmin@chromium.org,xingliu@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 837128 Change-Id: Id514b0f01b950d9940933fd17cb10d962ed69d85 Reviewed-on: https://chromium-review.googlesource.com/1129660 Commit-Queue: Xing Liu <xingliu@chromium.org> Reviewed-by:Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#573460}
Showing
Please register or sign in to comment