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

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

Issue 6775005: iwyu: Cleanup in the following files: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit test fixes. Created 9 years, 8 months 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
« no previous file with comments | « chrome/browser/autofill/autofill_metrics.h ('k') | chrome/browser/autofill/autofill_profile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/logging.h"
7 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
8 9
9 AutofillMetrics::AutofillMetrics() { 10 AutofillMetrics::AutofillMetrics() {
10 } 11 }
11 12
12 AutofillMetrics::~AutofillMetrics() { 13 AutofillMetrics::~AutofillMetrics() {
13 } 14 }
14 15
15 void AutofillMetrics::Log(CreditCardInfoBarMetric metric) const { 16 void AutofillMetrics::Log(CreditCardInfoBarMetric metric) const {
16 DCHECK(metric < NUM_CREDIT_CARD_INFO_BAR_METRICS); 17 DCHECK(metric < NUM_CREDIT_CARD_INFO_BAR_METRICS);
(...skipping 16 matching lines...) Expand all
33 std::string histogram_name = "Autofill.Quality"; 34 std::string histogram_name = "Autofill.Quality";
34 if (!experiment_id.empty()) 35 if (!experiment_id.empty())
35 histogram_name += "_" + experiment_id; 36 histogram_name += "_" + experiment_id;
36 37
37 UMA_HISTOGRAM_ENUMERATION(histogram_name, metric, NUM_QUALITY_METRICS); 38 UMA_HISTOGRAM_ENUMERATION(histogram_name, metric, NUM_QUALITY_METRICS);
38 } 39 }
39 40
40 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) const { 41 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) const {
41 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles); 42 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles);
42 } 43 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_metrics.h ('k') | chrome/browser/autofill/autofill_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698