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

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: Hopefully compile on Windows 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..d441ab40f37a73df035594051238f159df533a31 100644
--- a/chrome/browser/autofill/autofill_metrics.cc
+++ b/chrome/browser/autofill/autofill_metrics.cc
@@ -6,13 +6,22 @@
#include "base/metrics/histogram.h"
-namespace autofill_metrics {
+AutoFillServerQueryMetricLogger::~AutoFillServerQueryMetricLogger() {
+}
-void LogServerQueryMetric(ServerQueryMetricType type) {
- DCHECK(type < NUM_SERVER_QUERY_METRICS);
+void AutoFillServerQueryMetricLogger::Log(Metric metric) const {
+ DCHECK(metric < NUM_SERVER_QUERY_METRICS);
- UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", type,
+ UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", metric,
NUM_SERVER_QUERY_METRICS);
}
-} // namespace autofill_metrics
+AutoFillQualityMetricLogger::~AutoFillQualityMetricLogger() {
+}
+
+void AutoFillQualityMetricLogger::Log(Metric metric) const {
+ DCHECK(metric < NUM_QUALITY_METRICS);
+
+ UMA_HISTOGRAM_ENUMERATION("AutoFill.Quality", metric,
+ NUM_QUALITY_METRICS);
+}

Powered by Google App Engine
This is Rietveld 408576698