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

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

Issue 949323002: Collecting UMA metrics for the UnmaskPrompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 5 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/core/browser/autofill_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_metrics.cc
diff --git a/components/autofill/core/browser/autofill_metrics.cc b/components/autofill/core/browser/autofill_metrics.cc
index c016c6bcec3fc8141e2b67afeef17c01edbba3f4..57716f24441c8b656d00eb22bfc6184f468f26ab 100644
--- a/components/autofill/core/browser/autofill_metrics.cc
+++ b/components/autofill/core/browser/autofill_metrics.cc
@@ -341,6 +341,38 @@ void AutofillMetrics::LogDialogUiEvent(DialogUiEvent event) {
}
// static
+void AutofillMetrics::LogUnmaskPromptEvent(UnmaskPromptEvent event) {
+ UMA_HISTOGRAM_ENUMERATION("Autofill.UnmaskPrompt.Events", event,
+ NUM_UNMASK_PROMPT_EVENTS);
+}
+
+// static
+void AutofillMetrics::LogRealPanResult(
+ AutofillClient::GetRealPanResult result) {
+ GetRealPanResult metric_result;
+ switch (result) {
+ case AutofillClient::SUCCESS:
+ metric_result = GET_REAL_PAN_RESULT_SUCCESS;
+ break;
+ case AutofillClient::TRY_AGAIN_FAILURE:
+ metric_result = GET_REAL_PAN_RESULT_TRY_AGAIN_FAILURE;
+ break;
+ case AutofillClient::PERMANENT_FAILURE:
+ metric_result = GET_REAL_PAN_RESULT_PERMANENT_FAILURE;
+ break;
+ case AutofillClient::NETWORK_ERROR:
+ metric_result = GET_REAL_PAN_RESULT_NETWORK_ERROR;
+ break;
+ default:
+ NOTREACHED();
+ return;
+ }
+ UMA_HISTOGRAM_ENUMERATION("Autofill.UnmaskPrompt.GetRealPanResult",
+ metric_result,
+ NUM_GET_REAL_PAN_RESULTS);
+}
+
+// static
void AutofillMetrics::LogWalletErrorMetric(WalletErrorMetric metric) {
UMA_HISTOGRAM_ENUMERATION("RequestAutocomplete.WalletErrors", metric,
NUM_WALLET_ERROR_METRICS);
« no previous file with comments | « components/autofill/core/browser/autofill_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698