Index: content/browser/download/download_stats.cc |
diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc |
index 90d943ab6f797d2ece720fc2116e4b38c23e738d..1abbc8c48fdd9ace389cf5524dd28889c9c45165 100644 |
--- a/content/browser/download/download_stats.cc |
+++ b/content/browser/download/download_stats.cc |
@@ -61,7 +61,14 @@ void RecordDownloadInterrupted(int error, int64 received, int64 total) { |
1, |
kMaxKb, |
kBuckets); |
- if (delta_bytes >= 0) { |
+ if (delta_bytes == 0) { |
+ RecordDownloadCount(INTERRUPTED_AT_END_COUNT); |
+ UMA_HISTOGRAM_CUSTOM_ENUMERATION( |
+ "Download.InterruptedAtEndError", |
+ -error, |
+ base::CustomHistogram::ArrayToCustomRanges( |
+ kAllNetErrorCodes, arraysize(kAllNetErrorCodes))); |
+ } else if (delta_bytes > 0) { |
UMA_HISTOGRAM_CUSTOM_COUNTS("Download.InterruptedOverrunBytes", |
delta_bytes, |
1, |