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

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

Issue 12588002: [Autofill] Add user type metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enumerate all the cases, including the error case Created 7 years, 9 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') | no next file » | 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 11530a6ce54836a46a08ecfcc9f4fb38ac19788e..8154280af863167ddb73b8a6fe2e4b95c9ca558b 100644
--- a/components/autofill/browser/autofill_metrics.cc
+++ b/components/autofill/browser/autofill_metrics.cc
@@ -296,6 +296,14 @@ void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric) const {
NUM_INFO_BAR_METRICS);
}
+void AutofillMetrics::LogDialogInitialUserState(
+ autofill::DialogType dialog_type,
+ DialogInitialUserStateMetric user_type) const {
Dan Beam 2013/03/12 14:59:32 DCHECK_NE(UNKNOWN_TYPE, user_type);
Ilya Sherman 2013/03/12 20:51:27 This DCHECK wouldn't be valid, since it's possible
+ std::string name = GetPrefixForDialogType(dialog_type) + ".InitialUserState";
+ LogUMAHistogramEnumeration(
+ name, user_type, NUM_DIALOG_INITIAL_USER_STATE_METRICS);
+}
+
void AutofillMetrics::LogDialogSecurityMetric(
autofill::DialogType dialog_type,
DialogSecurityMetric metric) const {
« no previous file with comments | « components/autofill/browser/autofill_metrics.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698