| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_metrics.h" | 5 #include "components/autofill/core/browser/autofill_metrics.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/metrics/sparse_histogram.h" | 9 #include "base/metrics/sparse_histogram.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 258 } |
| 259 | 259 |
| 260 } // namespace | 260 } // namespace |
| 261 | 261 |
| 262 AutofillMetrics::AutofillMetrics() { | 262 AutofillMetrics::AutofillMetrics() { |
| 263 } | 263 } |
| 264 | 264 |
| 265 AutofillMetrics::~AutofillMetrics() { | 265 AutofillMetrics::~AutofillMetrics() { |
| 266 } | 266 } |
| 267 | 267 |
| 268 // static | 268 void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric) const { |
| 269 void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric) { | |
| 270 DCHECK_LT(metric, NUM_INFO_BAR_METRICS); | 269 DCHECK_LT(metric, NUM_INFO_BAR_METRICS); |
| 271 UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar", metric, | 270 UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar", metric, |
| 272 NUM_INFO_BAR_METRICS); | 271 NUM_INFO_BAR_METRICS); |
| 273 } | 272 } |
| 274 | 273 |
| 275 void AutofillMetrics::LogDialogDismissalState( | 274 void AutofillMetrics::LogDialogDismissalState( |
| 276 DialogDismissalState state) const { | 275 DialogDismissalState state) const { |
| 277 UMA_HISTOGRAM_ENUMERATION("RequestAutocomplete.DismissalState", | 276 UMA_HISTOGRAM_ENUMERATION("RequestAutocomplete.DismissalState", |
| 278 state, NUM_DIALOG_DISMISSAL_STATES); | 277 state, NUM_DIALOG_DISMISSAL_STATES); |
| 279 } | 278 } |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 436 |
| 438 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) const { | 437 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) const { |
| 439 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles); | 438 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles); |
| 440 } | 439 } |
| 441 | 440 |
| 442 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) const { | 441 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) const { |
| 443 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); | 442 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); |
| 444 } | 443 } |
| 445 | 444 |
| 446 } // namespace autofill | 445 } // namespace autofill |
| OLD | NEW |