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

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

Issue 2658843004: [Autofill] Convert wallet addresses to local autofill profiles. (Closed)
Patch Set: Change how to get server cards Created 3 years, 10 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 // A maximum of 50 is enforced to reduce the number of generated buckets. 668 // A maximum of 50 is enforced to reduce the number of generated buckets.
669 UMA_HISTOGRAM_COUNTS_1000("Autofill.NumberOfProfilesRemovedDuringDedupe", 669 UMA_HISTOGRAM_COUNTS_1000("Autofill.NumberOfProfilesRemovedDuringDedupe",
670 std::min(int(num_removed), 50)); 670 std::min(int(num_removed), 50));
671 } 671 }
672 672
673 // static 673 // static
674 void AutofillMetrics::LogIsQueriedCreditCardFormSecure(bool is_secure) { 674 void AutofillMetrics::LogIsQueriedCreditCardFormSecure(bool is_secure) {
675 UMA_HISTOGRAM_BOOLEAN("Autofill.QueriedCreditCardFormIsSecure", is_secure); 675 UMA_HISTOGRAM_BOOLEAN("Autofill.QueriedCreditCardFormIsSecure", is_secure);
676 } 676 }
677 677
678 // static
679 void AutofillMetrics::LogWalletAddressConversionType(
680 WalletAddressConversionType type) {
681 DCHECK_LT(type, NUM_CONVERTED_ADDRESS_CONVERSION_TYPES);
682 UMA_HISTOGRAM_ENUMERATION("Autofill.WalletAddressConversionType", type,
683 NUM_CONVERTED_ADDRESS_CONVERSION_TYPES);
684 }
685
678 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card) 686 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card)
679 : is_for_credit_card_(is_for_credit_card), 687 : is_for_credit_card_(is_for_credit_card),
680 is_server_data_available_(false), 688 is_server_data_available_(false),
681 is_local_data_available_(false), 689 is_local_data_available_(false),
682 has_logged_interacted_(false), 690 has_logged_interacted_(false),
683 has_logged_suggestions_shown_(false), 691 has_logged_suggestions_shown_(false),
684 has_logged_masked_server_card_suggestion_selected_(false), 692 has_logged_masked_server_card_suggestion_selected_(false),
685 has_logged_suggestion_filled_(false), 693 has_logged_suggestion_filled_(false),
686 has_logged_will_submit_(false), 694 has_logged_will_submit_(false),
687 has_logged_submitted_(false), 695 has_logged_submitted_(false),
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 else if (is_server_data_available_ && !is_local_data_available_) 872 else if (is_server_data_available_ && !is_local_data_available_)
865 name += ".WithOnlyServerData"; 873 name += ".WithOnlyServerData";
866 else if (!is_server_data_available_ && is_local_data_available_) 874 else if (!is_server_data_available_ && is_local_data_available_)
867 name += ".WithOnlyLocalData"; 875 name += ".WithOnlyLocalData";
868 else 876 else
869 name += ".WithBothServerAndLocalData"; 877 name += ".WithBothServerAndLocalData";
870 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); 878 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS);
871 } 879 }
872 880
873 } // namespace autofill 881 } // 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