Reland: "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. TBR=dtrainor@chromium.org, qinmin@chromium.org Bug: 837128 Change-Id: I59ddb7ff57551beb862884febe2de3f3ee9e1359 Reviewed-on: https://chromium-review.googlesource.com/1130349Reviewed-by:Xing Liu <xingliu@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#573547}
Showing
Please register or sign in to comment