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

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

Issue 5703002: Add some basic success/failure UMA logging for autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
Index: chrome/browser/autofill/autofill_metrics.cc
diff --git a/chrome/browser/autofill/autofill_metrics.cc b/chrome/browser/autofill/autofill_metrics.cc
index 85b5517f40975f9f3876d06eee1c5645681dcd2e..f0923795ac29b13111a4611624355dd28f4ecf69 100644
--- a/chrome/browser/autofill/autofill_metrics.cc
+++ b/chrome/browser/autofill/autofill_metrics.cc
@@ -15,4 +15,11 @@ void LogServerQueryMetric(ServerQueryMetricType type) {
NUM_SERVER_QUERY_METRICS);
}
+void LogQualityMetric(QualityMetricType type) {
+ DCHECK(type < NUM_QUALITY_METRICS);
+
+ UMA_HISTOGRAM_ENUMERATION("AutoFill.Quality", type,
+ NUM_QUALITY_METRICS);
+}
+
} // namespace autofill_metrics

Powered by Google App Engine
This is Rietveld 408576698