Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(923)

Unified Diff: components/autofill/browser/autofill_metrics.cc

Issue 14060013: Add UMA stats to track whitelist download latency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move UMA tracking code out of the if/else block. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/browser/autofill_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..82594a8e0b6d351e270201d5c58c96608e9940f4 100644
--- a/components/autofill/browser/autofill_metrics.cc
+++ b/components/autofill/browser/autofill_metrics.cc
@@ -448,6 +448,25 @@ void AutofillMetrics::LogAutocheckoutDuration(
LogUMAHistogramLongTimes("Autocheckout.FlowDuration." + suffix, duration);
}
+void AutofillMetrics::LogAutocheckoutWhitelistDownloadDuration(
+ const base::TimeDelta& duration,
+ AutocheckoutWhitelistDownloadStatus status) const {
+ std::string suffix;
+ switch (status) {
+ case AUTOCHECKOUT_WHITELIST_DOWNLOAD_FAILED:
+ suffix = "Failed";
+ break;
+
+ case AUTOCHECKOUT_WHITELIST_DOWNLOAD_SUCCEEDED:
+ suffix = "Succeeded";
+ break;
+ }
+
+ LogUMAHistogramTimes("Autocheckout.WhitelistDownloadDuration", duration);
+ LogUMAHistogramTimes(
+ "Autocheckout.WhitelistDownloadDuration." + suffix, duration);
+}
+
void AutofillMetrics::LogDeveloperEngagementMetric(
DeveloperEngagementMetric metric) const {
DCHECK_LT(metric, NUM_DEVELOPER_ENGAGEMENT_METRICS);
« no previous file with comments | « components/autofill/browser/autofill_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698