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

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

Issue 2395243002: [Autofill] Log count histogram for the number of server cards (Closed)
Patch Set: addressed nits Created 4 years, 2 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) { 522 void AutofillMetrics::LogStoredProfileCount(size_t num_profiles) {
523 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles); 523 UMA_HISTOGRAM_COUNTS("Autofill.StoredProfileCount", num_profiles);
524 } 524 }
525 525
526 // static 526 // static
527 void AutofillMetrics::LogStoredLocalCreditCardCount(size_t num_local_cards) { 527 void AutofillMetrics::LogStoredLocalCreditCardCount(size_t num_local_cards) {
528 UMA_HISTOGRAM_COUNTS("Autofill.StoredLocalCreditCardCount", num_local_cards); 528 UMA_HISTOGRAM_COUNTS("Autofill.StoredLocalCreditCardCount", num_local_cards);
529 } 529 }
530 530
531 // static 531 // static
532 void AutofillMetrics::LogStoredServerCreditCardCounts(
533 size_t num_masked_cards,
534 size_t num_unmasked_cards) {
535 UMA_HISTOGRAM_COUNTS_1000("Autofill.StoredServerCreditCardCount.Masked",
536 num_masked_cards);
537 UMA_HISTOGRAM_COUNTS_1000("Autofill.StoredServerCreditCardCount.Unmasked",
538 num_unmasked_cards);
539 }
540
541 // static
532 void AutofillMetrics::LogNumberOfProfilesAtAutofillableFormSubmission( 542 void AutofillMetrics::LogNumberOfProfilesAtAutofillableFormSubmission(
533 size_t num_profiles) { 543 size_t num_profiles) {
534 UMA_HISTOGRAM_COUNTS( 544 UMA_HISTOGRAM_COUNTS(
535 "Autofill.StoredProfileCountAtAutofillableFormSubmission", num_profiles); 545 "Autofill.StoredProfileCountAtAutofillableFormSubmission", num_profiles);
536 } 546 }
537 547
538 // static 548 // static
539 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) { 549 void AutofillMetrics::LogAddressSuggestionsCount(size_t num_suggestions) {
540 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions); 550 UMA_HISTOGRAM_COUNTS("Autofill.AddressSuggestionsCount", num_suggestions);
541 } 551 }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 else if (is_server_data_available_ && !is_local_data_available_) 844 else if (is_server_data_available_ && !is_local_data_available_)
835 name += ".WithOnlyServerData"; 845 name += ".WithOnlyServerData";
836 else if (!is_server_data_available_ && is_local_data_available_) 846 else if (!is_server_data_available_ && is_local_data_available_)
837 name += ".WithOnlyLocalData"; 847 name += ".WithOnlyLocalData";
838 else 848 else
839 name += ".WithBothServerAndLocalData"; 849 name += ".WithBothServerAndLocalData";
840 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); 850 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS);
841 } 851 }
842 852
843 } // namespace autofill 853 } // 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