Chromium Code Reviews| Index: content/browser/download/download_stats.cc |
| diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc |
| index 66716cac415d555be3af8e34fe8e437c8f137702..d88eef2c4e2c039e61add7820cc94b88b562cfbe 100644 |
| --- a/content/browser/download/download_stats.cc |
| +++ b/content/browser/download/download_stats.cc |
| @@ -611,6 +611,18 @@ void RecordFileBandwidth(size_t length, |
| disk_write_time_ms * 100 / elapsed_time_ms); |
| } |
| +void RecordDownloadFileRenameResultAfterRetry( |
| + base::TimeDelta time_since_first_failure, |
| + DownloadInterruptReason interrupt_reason) { |
| + if (interrupt_reason == DOWNLOAD_INTERRUPT_REASON_NONE) { |
| + UMA_HISTOGRAM_TIMES("Download.TimeToRenameSuccessAfterInitialFailure", |
| + time_since_first_failure); |
| + } else { |
| + UMA_HISTOGRAM_TIMES("Download.TimeToRenameFailureAfterInitialFailure", |
| + time_since_first_failure); |
| + } |
|
Randy Smith (Not in Mondays)
2014/06/11 18:07:29
I may be a missing a corner case of the math, but
asanka
2014/06/12 20:02:37
This stat is recorded whenever we retry a rename r
|
| +} |
| + |
| void RecordSavePackageEvent(SavePackageEvent event) { |
| UMA_HISTOGRAM_ENUMERATION("Download.SavePackage", |
| event, |