| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 463 // static |
| 464 void AutofillMetrics::LogNumberOfProfilesAtAutofillableFormSubmission( |
| 465 size_t num_profiles) { |
| 466 UMA_HISTOGRAM_COUNTS( |
| 467 "Autofill.StoredProfileCountAtAutofillableFormSubmission", num_profiles); |
| 468 } |
| 469 |
| 470 // static |
| 464 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) { | 471 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) { |
| 465 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); | 472 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); |
| 466 } | 473 } |
| 467 | 474 |
| 468 } // namespace autofill | 475 } // namespace autofill |
| OLD | NEW |