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

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

Issue 2658843004: [Autofill] Convert wallet addresses to local autofill profiles. (Closed)
Patch Set: Change how to get server cards Created 3 years, 11 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 | « no previous file | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 974f39d96d77b1cc0f6a9c70399bc7f3df46a2f5..9b71b004437860c8b13bf17f3138ebc544f2c877 100644
--- a/components/autofill/core/browser/autofill_metrics.h
+++ b/components/autofill/core/browser/autofill_metrics.h
@@ -518,6 +518,15 @@ class AutofillMetrics {
NUM_WALLET_REQUIRED_ACTIONS
};
+ // For mesuring how wallet addresses are converted to local profiles.
+ enum WalletAddressConversionType : int {
+ // The converted wallet address was merged into an existing local profile.
+ CONVERTED_ADDRESS_MERGED,
+ // The converted wallet address was added as a new local profile.
+ CONVERTED_ADDRESS_ADDED,
+ NUM_CONVERTED_ADDRESS_CONVERSION_TYPES
+ };
+
static void LogCardUploadDecisionMetric(CardUploadDecisionMetric metric);
static void LogCreditCardInfoBarMetric(InfoBarMetric metric,
bool is_uploading);
@@ -663,6 +672,10 @@ class AutofillMetrics {
// context.
static void LogIsQueriedCreditCardFormSecure(bool is_secure);
+ // Log how the converted wallet address was added to the local autofill
+ // profiles.
+ static void LogWalletAddressConversionType(WalletAddressConversionType type);
+
// Utility to autofill form events in the relevant histograms depending on
// the presence of server and/or local data.
class FormEventLogger {
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698