summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorqinmin <qinmin@chromium.org>2016-03-23 18:50:19 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-24 01:51:42 +0000
commit52d7cf606132f69666cc445621db0a0f19e99ecb (patch)
tree93ec5e954caccaff4d54f9d650a3878765a88e85 /tools
parentdb7410a13770f6be066a20a78ae2a6320afdc026 (diff)
downloadchromium_src-52d7cf606132f69666cc445621db0a0f19e99ecb.zip
chromium_src-52d7cf606132f69666cc445621db0a0f19e99ecb.tar.gz
chromium_src-52d7cf606132f69666cc445621db0a0f19e99ecb.tar.bz2
Allow interrupted download to auto resume
For android DownloadManager, it can automatically resume download if connectivity changes. However, with chrome network stack, this won't happen automatically. A download initiated on mobile network won't switch to wifi automatically after mobile network is unreachable, e.g. This change solves the problem by automatically resuming a download after network status changes. The resumption logic can be found internally in a PRD: For download initiated in mobile, it can be resumed under wifi or mobile. For download initiated in wifi, it can only be resumed under wifi. Whenenver a download is interrupted, we add it as a resumption candidate if it can be resumed. When network status changes, we check if any candidates can be resumed and start them automatically. BUG=460603 Committed: https://crrev.com/f2af782b65e6d24c839f0044bee018cf60fabc5c Cr-Commit-Position: refs/heads/master@{#382883} Review URL: https://codereview.chromium.org/1800103005 Cr-Commit-Position: refs/heads/master@{#383010}
Diffstat (limited to 'tools')
-rw-r--r--tools/metrics/histograms/histograms.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 6ccda4a..40ee1f2 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -74829,6 +74829,7 @@ To add a new entry, add it with any value and run test to compute valid value.
<int value="1" label="Resumption button shown after browser is killed"/>
<int value="2" label="Resumption button clicked"/>
<int value="3" label="Resumption failed"/>
+ <int value="4" label="Resumption auto started"/>
</enum>
<enum name="MobileFreSignInChoice" type="int">