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

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: Forbid copying, assignments (just like in, school) 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
« no previous file with comments | « chrome/browser/autofill/autofill_metrics.h ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bae11d7e6139414aa639bc9dbe8c07cb84281d62 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 {
+AutoFillMetrics::AutoFillMetrics() {
+}
+
+AutoFillMetrics::~AutoFillMetrics() {
+}
-void LogServerQueryMetric(ServerQueryMetricType type) {
- DCHECK(type < NUM_SERVER_QUERY_METRICS);
+void AutoFillMetrics::Log(ServerQueryMetric 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
+void AutoFillMetrics::Log(QualityMetric metric) const {
+ DCHECK(metric < NUM_QUALITY_METRICS);
+
+ UMA_HISTOGRAM_ENUMERATION("AutoFill.Quality", metric,
+ NUM_QUALITY_METRICS);
+}
« no previous file with comments | « chrome/browser/autofill/autofill_metrics.h ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698