diff options
Diffstat (limited to 'chrome/browser/autofill/autofill_metrics.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_metrics.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/autofill/autofill_metrics.cc b/chrome/browser/autofill/autofill_metrics.cc index b365840..922fdc9 100644 --- a/chrome/browser/autofill/autofill_metrics.cc +++ b/chrome/browser/autofill/autofill_metrics.cc @@ -40,11 +40,16 @@ void AutofillMetrics::Log(CreditCardInfoBarMetric metric) const { NUM_CREDIT_CARD_INFO_BAR_METRICS); } -void AutofillMetrics::Log(HeuristicTypeQualityMetric metric) const { +void AutofillMetrics::Log(HeuristicTypeQualityMetric metric, + const std::string& experiment_id) const { DCHECK(metric < NUM_HEURISTIC_TYPE_QUALITY_METRICS); - UMA_HISTOGRAM_ENUMERATION("Autofill.Quality.HeuristicType", metric, - NUM_HEURISTIC_TYPE_QUALITY_METRICS); + std::string histogram_name = "Autofill.Quality.HeuristicType"; + if (!experiment_id.empty()) + histogram_name += "_" + experiment_id; + + LogUMAHistogramEnumeration(histogram_name, metric, + NUM_HEURISTIC_TYPE_QUALITY_METRICS); } void AutofillMetrics::Log(PredictedTypeQualityMetric metric, |