Chromium Code Reviews| Index: components/autofill/browser/autofill_metrics.cc |
| diff --git a/components/autofill/browser/autofill_metrics.cc b/components/autofill/browser/autofill_metrics.cc |
| index f36d3b12b533b7fe0a442ce68151ad31c1979457..372a5a49bba64f5f90f944ea4750a6420f93ca89 100644 |
| --- a/components/autofill/browser/autofill_metrics.cc |
| +++ b/components/autofill/browser/autofill_metrics.cc |
| @@ -448,6 +448,24 @@ void AutofillMetrics::LogAutocheckoutDuration( |
| LogUMAHistogramLongTimes("Autocheckout.FlowDuration." + suffix, duration); |
| } |
| +void AutofillMetrics::LogAutocheckoutWhitelistDownloadDuration( |
| + const base::TimeDelta& duration, WhitelistDownloadStatus status) const { |
| + std::string suffix; |
| + switch (status) { |
| + case WHITELIST_DOWNLOAD_FAILED: |
| + suffix = "Failed"; |
| + break; |
| + |
| + case WHITELIST_DOWNLOAD_SUCCEEDED: |
| + suffix = "Succeeded"; |
| + break; |
| + } |
| + |
| + LogUMAHistogramLongTimes("Autocheckout.WhitelistDownloadDuration", duration); |
|
ahutter
2013/04/16 17:56:54
I think you want to use LogUMAHistogramTimes since
benquan
2013/04/17 01:51:30
Done.
|
| + LogUMAHistogramLongTimes( |
| + "Autocheckout.WhitelistDownloadDuration." + suffix, duration); |
| +} |
| + |
| void AutofillMetrics::LogDeveloperEngagementMetric( |
| DeveloperEngagementMetric metric) const { |
| DCHECK_LT(metric, NUM_DEVELOPER_ENGAGEMENT_METRICS); |