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

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

Issue 2665313002: Add a counter for clicking on Form-Not-Secure warnings (Closed)
Patch Set: rebase fixup again 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed); 669 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed);
670 670
671 // Log whether the Autofill query on a credit card form is made in a secure 671 // Log whether the Autofill query on a credit card form is made in a secure
672 // context. 672 // context.
673 static void LogIsQueriedCreditCardFormSecure(bool is_secure); 673 static void LogIsQueriedCreditCardFormSecure(bool is_secure);
674 674
675 // Log how the converted wallet address was added to the local autofill 675 // Log how the converted wallet address was added to the local autofill
676 // profiles. 676 // profiles.
677 static void LogWalletAddressConversionType(WalletAddressConversionType type); 677 static void LogWalletAddressConversionType(WalletAddressConversionType type);
678 678
679 // This should be called when the user selects the Form-Not-Secure warning
680 // suggestion to show an explanation of the warning.
681 static void LogShowedHttpNotSecureExplanation();
682
679 // Utility to autofill form events in the relevant histograms depending on 683 // Utility to autofill form events in the relevant histograms depending on
680 // the presence of server and/or local data. 684 // the presence of server and/or local data.
681 class FormEventLogger { 685 class FormEventLogger {
682 public: 686 public:
683 FormEventLogger(bool is_for_credit_card); 687 FormEventLogger(bool is_for_credit_card);
684 688
685 inline void set_is_server_data_available(bool is_server_data_available) { 689 inline void set_is_server_data_available(bool is_server_data_available) {
686 is_server_data_available_ = is_server_data_available; 690 is_server_data_available_ = is_server_data_available;
687 } 691 }
688 692
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 FormFieldData last_polled_field_; 731 FormFieldData last_polled_field_;
728 }; 732 };
729 733
730 private: 734 private:
731 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 735 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
732 }; 736 };
733 737
734 } // namespace autofill 738 } // namespace autofill
735 739
736 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 740 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_external_delegate.cc ('k') | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698