summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_metrics.cc
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 21:41:30 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 21:41:30 +0000
commit75e20841bd18a6053aa41b754ddfcaa1445435d8 (patch)
tree3619e07cc11b9bc64a1f512a9bfa36245aa0c680 /chrome/browser/autofill/autofill_metrics.cc
parent7ab9307a4226b1a76933721c4e62e605c2117b7b (diff)
downloadchromium_src-75e20841bd18a6053aa41b754ddfcaa1445435d8.zip
chromium_src-75e20841bd18a6053aa41b754ddfcaa1445435d8.tar.gz
chromium_src-75e20841bd18a6053aa41b754ddfcaa1445435d8.tar.bz2
Add server experiment variants to Autofill heuristic type quality metric.
Useful as a control for the other type quality metrics. BUG=none TEST=unit_tests --gtest_filter=AutofillMetrics* Review URL: http://codereview.chromium.org/6825066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81312 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_metrics.cc')
-rw-r--r--chrome/browser/autofill/autofill_metrics.cc11
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,