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

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

Issue 7740070: Add metrics to measure time elapsed between form load and form submission with or without Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Serialize in all the right places Created 9 years, 4 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
Index: chrome/browser/autofill/autofill_metrics.cc
diff --git a/chrome/browser/autofill/autofill_metrics.cc b/chrome/browser/autofill/autofill_metrics.cc
index 593f44963717779051ce2bf4404d39d1f98546ce..3a215623bbfbc979c0a5d448353237d085ae7f3a 100644
--- a/chrome/browser/autofill/autofill_metrics.cc
+++ b/chrome/browser/autofill/autofill_metrics.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
+#include "base/time.h"
#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/form_structure.h"
#include "webkit/glue/form_data.h"
@@ -295,6 +296,16 @@ void AutofillMetrics::LogUserHappinessMetric(UserHappinessMetric metric) const {
NUM_USER_HAPPINESS_METRICS);
}
+void AutofillMetrics::LogAutofilledFormSubmittedAfterDuration(
+ const base::TimeDelta& duration) const {
+ UMA_HISTOGRAM_TIMES("Autofill.FormFillTime.WithAutofill", duration);
+}
+
+void AutofillMetrics::LogNonAutofilledFormSubmittedAfterDuration(
+ const base::TimeDelta& duration) const {
+ UMA_HISTOGRAM_TIMES("Autofill.FormFillTime.WithoutAutofill", duration);
+}
+
void AutofillMetrics::LogIsAutofillEnabledAtStartup(bool enabled) const {
UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.Startup", enabled);
}

Powered by Google App Engine
This is Rietveld 408576698