Chromium Code Reviews| 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..b22f1e1397c775adb2b7682f6e8ad5f51121cc12 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 { |
|
Mathieu
2017/02/02 01:22:52
enum WalletAddressConversionType : int {
sebsg
2017/02/02 15:18:51
Done.
|
| + // 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 { |