| 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 54a927a430b658723733917ee7bf854919b024ae..b4ea42e27c484d53f169bf582018fc7a4d081e46 100644
|
| --- a/components/autofill/core/browser/autofill_metrics.cc
|
| +++ b/components/autofill/core/browser/autofill_metrics.cc
|
| @@ -258,10 +258,16 @@ void AutofillMetrics::LogCardUploadDecisionMetric(
|
| }
|
|
|
| // static
|
| -void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric) {
|
| +void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric,
|
| + bool is_uploading) {
|
| DCHECK_LT(metric, NUM_INFO_BAR_METRICS);
|
| - UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar", metric,
|
| - NUM_INFO_BAR_METRICS);
|
| + if (is_uploading) {
|
| + UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar.Server", metric,
|
| + NUM_INFO_BAR_METRICS);
|
| + } else {
|
| + UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar.Local", metric,
|
| + NUM_INFO_BAR_METRICS);
|
| + }
|
| }
|
|
|
| // static
|
|
|