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

Side by Side Diff: components/autofill/core/browser/autofill_metrics.cc

Issue 1839583003: [Autofill] Log the number of stored local credit cards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 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
OLDNEW
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 void AutofillMetrics::LogIsAutofillEnabledAtPageLoad(bool enabled) { 617 void AutofillMetrics::LogIsAutofillEnabledAtPageLoad(bool enabled) {
618 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.PageLoad", enabled); 618 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.PageLoad", enabled);
619 } 619 }
620 620
621 // static 621 // static
622 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) { 622 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) {
623 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles); 623 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles);
624 } 624 }
625 625
626 // static 626 // static
627 void AutofillMetrics::LogStoredLocalCreditCardCount(size_t num_local_cards) {
628 UMA_HISTOGRAM_COUNTS("Autofill.StoredLocalCreditCardCount", num_local_cards);
629 }
630
631 // static
627 void AutofillMetrics::LogNumberOfProfilesAtAutofillableFormSubmission( 632 void AutofillMetrics::LogNumberOfProfilesAtAutofillableFormSubmission(
628 size_t num_profiles) { 633 size_t num_profiles) {
629 UMA_HISTOGRAM_COUNTS( 634 UMA_HISTOGRAM_COUNTS(
630 "Autofill.StoredProfileCountAtAutofillableFormSubmission", num_profiles); 635 "Autofill.StoredProfileCountAtAutofillableFormSubmission", num_profiles);
631 } 636 }
632 637
633 // static 638 // static
634 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) { 639 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) {
635 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); 640 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions);
636 } 641 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 else if (is_server_data_available_ && !is_local_data_available_) 845 else if (is_server_data_available_ && !is_local_data_available_)
841 name += ".WithOnlyServerData"; 846 name += ".WithOnlyServerData";
842 else if (!is_server_data_available_ && is_local_data_available_) 847 else if (!is_server_data_available_ && is_local_data_available_)
843 name += ".WithOnlyLocalData"; 848 name += ".WithOnlyLocalData";
844 else 849 else
845 name += ".WithBothServerAndLocalData"; 850 name += ".WithBothServerAndLocalData";
846 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); 851 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS);
847 } 852 }
848 853
849 } // namespace autofill 854 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_metrics.h ('k') | components/autofill/core/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698