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

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: Hopefully compile on Windows 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 AutoFillServerQueryMetricLogger::~AutoFillServerQueryMetricLogger() {
10 }
10 11
11 void LogServerQueryMetric(ServerQueryMetricType type) { 12 void AutoFillServerQueryMetricLogger::Log(Metric metric) const {
12 DCHECK(type < NUM_SERVER_QUERY_METRICS); 13 DCHECK(metric < NUM_SERVER_QUERY_METRICS);
13 14
14 UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", type, 15 UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", metric,
15 NUM_SERVER_QUERY_METRICS); 16 NUM_SERVER_QUERY_METRICS);
16 } 17 }
17 18
18 } // namespace autofill_metrics 19 AutoFillQualityMetricLogger::~AutoFillQualityMetricLogger() {
20 }
21
22 void AutoFillQualityMetricLogger::Log(Metric metric) const {
23 DCHECK(metric < NUM_QUALITY_METRICS);
24
25 UMA_HISTOGRAM_ENUMERATION("AutoFill.Quality", metric,
26 NUM_QUALITY_METRICS);
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698