2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00

For #26089 - Record metrics for save credit card prompt shown

This commit is contained in:
Alexandru2909 2022-07-19 13:45:40 +03:00 committed by mergify[bot]
parent b4cf80a86d
commit 2345eb22a8
3 changed files with 19 additions and 0 deletions

View File

@ -7484,6 +7484,22 @@ credit_cards:
metadata: metadata:
tags: tags:
- Autofill - Autofill
save_prompt_shown:
type: event
description: |
The autofill save prompt is shown.
bugs:
- https://github.com/mozilla-mobile/fenix/issues/26089
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/26095
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 118
metadata:
tags:
- Autofill
addresses: addresses:
saved: saved:

View File

@ -172,6 +172,8 @@ internal class ReleaseMetricController(
CreditCards.savePromptCreate.record(NoExtras()) CreditCards.savePromptCreate.record(NoExtras())
Component.FEATURE_PROMPTS to CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED -> Component.FEATURE_PROMPTS to CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED ->
CreditCards.savePromptUpdate.record(NoExtras()) CreditCards.savePromptUpdate.record(NoExtras())
Component.FEATURE_PROMPTS to CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_SAVE_PROMPT_SHOWN ->
CreditCards.savePromptShown.record(NoExtras())
Component.FEATURE_PROMPTS to AddressAutofillDialogFacts.Items.AUTOFILL_ADDRESS_FORM_DETECTED -> Component.FEATURE_PROMPTS to AddressAutofillDialogFacts.Items.AUTOFILL_ADDRESS_FORM_DETECTED ->
Addresses.formDetected.record(NoExtras()) Addresses.formDetected.record(NoExtras())

View File

@ -584,6 +584,7 @@ class MetricControllerTest {
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_PROMPT_DISMISSED to CreditCards.autofillPromptDismissed, CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_PROMPT_DISMISSED to CreditCards.autofillPromptDismissed,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_CREATED to CreditCards.savePromptCreate, CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_CREATED to CreditCards.savePromptCreate,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED to CreditCards.savePromptUpdate, CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED to CreditCards.savePromptUpdate,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_SAVE_PROMPT_SHOWN to CreditCards.savePromptShown,
) )
itemsToEvents.forEach { (item, event) -> itemsToEvents.forEach { (item, event) ->