summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_metrics.cc
blob: bae11d7e6139414aa639bc9dbe8c07cb84281d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/autofill/autofill_metrics.h"

#include "base/metrics/histogram.h"

AutoFillMetrics::AutoFillMetrics() {
}

AutoFillMetrics::~AutoFillMetrics() {
}

void AutoFillMetrics::Log(ServerQueryMetric metric) const {
  DCHECK(metric < NUM_SERVER_QUERY_METRICS);

  UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", metric,
                            NUM_SERVER_QUERY_METRICS);
}

void AutoFillMetrics::Log(QualityMetric metric) const {
  DCHECK(metric < NUM_QUALITY_METRICS);

  UMA_HISTOGRAM_ENUMERATION("AutoFill.Quality", metric,
                            NUM_QUALITY_METRICS);
}