diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 07:04:03 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 07:04:03 +0000 |
commit | 6ee50a8d443f48e70921a8eed76f26a6e9844228 (patch) | |
tree | b83fc706e2a59ac1e2054209a53b65f5d6925744 /chrome/browser/autofill/autofill_metrics.cc | |
parent | 186c8af18006730780f4dbd5c1d8921bc139e060 (diff) | |
download | chromium_src-6ee50a8d443f48e70921a8eed76f26a6e9844228.zip chromium_src-6ee50a8d443f48e70921a8eed76f26a6e9844228.tar.gz chromium_src-6ee50a8d443f48e70921a8eed76f26a6e9844228.tar.bz2 |
Add UMA metrics to determine the utility of the server query responses.
BUG=64176
TEST=none
Review URL: http://codereview.chromium.org/5326001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67236 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_metrics.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_metrics.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_metrics.cc b/chrome/browser/autofill/autofill_metrics.cc new file mode 100644 index 0000000..85b5517 --- /dev/null +++ b/chrome/browser/autofill/autofill_metrics.cc @@ -0,0 +1,18 @@ +// 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" + +namespace autofill_metrics { + +void LogServerQueryMetric(ServerQueryMetricType type) { + DCHECK(type < NUM_SERVER_QUERY_METRICS); + + UMA_HISTOGRAM_ENUMERATION("AutoFill.ServerQueryResponse", type, + NUM_SERVER_QUERY_METRICS); +} + +} // namespace autofill_metrics |