OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/autofill/autofill_metrics.h" | 5 #include "chrome/browser/autofill/autofill_metrics.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 | 8 |
9 namespace autofill_metrics { | 9 namespace autofill_metrics { |
10 | 10 |
11 void LogServerQueryMetric(ServerQueryMetricType type) { | 11 void LogServerQueryMetric(ServerQueryMetricType type) { |
12 DCHECK(type < NUM_SERVER_QUERY_METRICS); | 12 DCHECK(type < NUM_SERVER_QUERY_METRICS); |
13 | 13 |
14 UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", type, | 14 UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", type, |
15 NUM_SERVER_QUERY_METRICS); | 15 NUM_SERVER_QUERY_METRICS); |
16 } | 16 } |
17 | 17 |
| 18 void LogQualityMetric(QualityMetricType type) { |
| 19 DCHECK(type < NUM_QUALITY_METRICS); |
| 20 |
| 21 UMA_HISTOGRAM_ENUMERATION("AutoFill.Quality", type, |
| 22 NUM_QUALITY_METRICS); |
| 23 } |
| 24 |
18 } // namespace autofill_metrics | 25 } // namespace autofill_metrics |
OLD | NEW |