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

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

Issue 2144653002: [Autofill] Log whether queried credit card form context is secure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 } 634 }
635 635
636 // static 636 // static
637 void AutofillMetrics::LogNumberOfProfilesRemovedDuringDedupe( 637 void AutofillMetrics::LogNumberOfProfilesRemovedDuringDedupe(
638 size_t num_removed) { 638 size_t num_removed) {
639 // A maximum of 50 is enforced to reduce the number of generated buckets. 639 // A maximum of 50 is enforced to reduce the number of generated buckets.
640 UMA_HISTOGRAM_COUNTS_1000("Autofill.NumberOfProfilesRemovedDuringDedupe", 640 UMA_HISTOGRAM_COUNTS_1000("Autofill.NumberOfProfilesRemovedDuringDedupe",
641 std::min(int(num_removed), 50)); 641 std::min(int(num_removed), 50));
642 } 642 }
643 643
644 // static
645 void AutofillMetrics::LogIsQueriedCreditCardFormSecure(bool is_secure) {
646 UMA_HISTOGRAM_BOOLEAN("Autofill.QueriedCreditCardFormIsSecure", is_secure);
647 }
648
644 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card) 649 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card)
645 : is_for_credit_card_(is_for_credit_card), 650 : is_for_credit_card_(is_for_credit_card),
646 is_server_data_available_(false), 651 is_server_data_available_(false),
647 is_local_data_available_(false), 652 is_local_data_available_(false),
648 has_logged_interacted_(false), 653 has_logged_interacted_(false),
649 has_logged_suggestions_shown_(false), 654 has_logged_suggestions_shown_(false),
650 has_logged_masked_server_card_suggestion_selected_(false), 655 has_logged_masked_server_card_suggestion_selected_(false),
651 has_logged_suggestion_filled_(false), 656 has_logged_suggestion_filled_(false),
652 has_logged_will_submit_(false), 657 has_logged_will_submit_(false),
653 has_logged_submitted_(false), 658 has_logged_submitted_(false),
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 else if (is_server_data_available_ && !is_local_data_available_) 827 else if (is_server_data_available_ && !is_local_data_available_)
823 name += ".WithOnlyServerData"; 828 name += ".WithOnlyServerData";
824 else if (!is_server_data_available_ && is_local_data_available_) 829 else if (!is_server_data_available_ && is_local_data_available_)
825 name += ".WithOnlyLocalData"; 830 name += ".WithOnlyLocalData";
826 else 831 else
827 name += ".WithBothServerAndLocalData"; 832 name += ".WithBothServerAndLocalData";
828 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); 833 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS);
829 } 834 }
830 835
831 } // namespace autofill 836 } // 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