Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: chrome/browser/autofill/autofill_metrics.cc

Issue 5703002: Add some basic success/failure UMA logging for autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698