Chromium Code Reviews| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 453 // static | 453 // static |
| 454 void AutofillMetrics::LogIsAutofillEnabledAtPageLoad(bool enabled) { | 454 void AutofillMetrics::LogIsAutofillEnabledAtPageLoad(bool enabled) { |
| 455 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.PageLoad", enabled); | 455 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.PageLoad", enabled); |
| 456 } | 456 } |
| 457 | 457 |
| 458 // static | 458 // static |
| 459 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) { | 459 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) { |
| 460 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles); | 460 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles); |
| 461 } | 461 } |
| 462 | 462 |
| 463 //static | |
| 464 void AutofillMetrics::LogNumberOfProfilesAtFormSubmission(size_t num_profiles) { | |
| 465 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCountAtSubmission", num_profiles); | |
|
Ilya Sherman
2015/01/28 23:17:57
nit: I'd make the name a little bit more explicit,
| |
| 466 } | |
| 467 | |
| 463 // static | 468 // static |
| 464 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) { | 469 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) { |
| 465 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); | 470 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); |
| 466 } | 471 } |
| 467 | 472 |
| 468 } // namespace autofill | 473 } // namespace autofill |
| OLD | NEW |