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

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

Issue 2665313002: Add a counter for clicking on Form-Not-Secure warnings (Closed)
Patch Set: use UserActions, and separate for password/autofill 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::LogShowedHttpNotSecureExplanation() {
680 base::RecordAction(
681 base::UserMetricsAction("Autofill_ShowedHttpNotSecureExplanation"));
682 }
683
678 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card) 684 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card)
679 : is_for_credit_card_(is_for_credit_card), 685 : is_for_credit_card_(is_for_credit_card),
680 is_server_data_available_(false), 686 is_server_data_available_(false),
681 is_local_data_available_(false), 687 is_local_data_available_(false),
682 has_logged_interacted_(false), 688 has_logged_interacted_(false),
683 has_logged_suggestions_shown_(false), 689 has_logged_suggestions_shown_(false),
684 has_logged_masked_server_card_suggestion_selected_(false), 690 has_logged_masked_server_card_suggestion_selected_(false),
685 has_logged_suggestion_filled_(false), 691 has_logged_suggestion_filled_(false),
686 has_logged_will_submit_(false), 692 has_logged_will_submit_(false),
687 has_logged_submitted_(false), 693 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_) 870 else if (is_server_data_available_ && !is_local_data_available_)
865 name += ".WithOnlyServerData"; 871 name += ".WithOnlyServerData";
866 else if (!is_server_data_available_ && is_local_data_available_) 872 else if (!is_server_data_available_ && is_local_data_available_)
867 name += ".WithOnlyLocalData"; 873 name += ".WithOnlyLocalData";
868 else 874 else
869 name += ".WithBothServerAndLocalData"; 875 name += ".WithBothServerAndLocalData";
870 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); 876 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS);
871 } 877 }
872 878
873 } // namespace autofill 879 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698