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

Unified Diff: components/autofill/core/browser/autofill_metrics.h

Issue 785953004: Add histogram for "scan credit card" usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 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: components/autofill/core/browser/autofill_metrics.h
diff --git a/components/autofill/core/browser/autofill_metrics.h b/components/autofill/core/browser/autofill_metrics.h
index 37086fcda7080f0391428470d1c548d93bde0334..f1c60d2785857454619a07e7ec1725b69ab209e1 100644
--- a/components/autofill/core/browser/autofill_metrics.h
+++ b/components/autofill/core/browser/autofill_metrics.h
@@ -195,6 +195,17 @@ class AutofillMetrics {
NUM_SERVER_QUERY_METRICS,
};
+ // Logs usage of "Scan card" control item.
+ enum ScanCreditCardPromptMetric {
+ // "Scan card" was presented to the user.
+ SCAN_CARD_ITEM_SHOWN,
+ // "Scan card" was selected by the user.
+ SCAN_CARD_ITEM_SELECTED,
+ // The user selected something in the dropdown besides "scan card".
+ SCAN_CARD_OTHER_ITEM_SELECTED,
+ NUM_SCAN_CREDIT_CARD_PROMPT_METRICS,
+ };
+
// Each of these metrics is logged only for potentially autofillable forms,
// i.e. forms with at least three fields, etc.
// These are used to derive certain "user happiness" metrics. For example, we
@@ -311,6 +322,7 @@ class AutofillMetrics {
virtual ~AutofillMetrics();
static void LogCreditCardInfoBarMetric(InfoBarMetric metric);
+ static void LogScanCreditCardPromptMetric(ScanCreditCardPromptMetric metric);
virtual void LogDeveloperEngagementMetric(
DeveloperEngagementMetric metric) const;

Powered by Google App Engine
This is Rietveld 408576698