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

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: 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 #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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 // Log how many profiles were considered for the deduplication process. 656 // Log how many profiles were considered for the deduplication process.
657 static void LogNumberOfProfilesConsideredForDedupe(size_t num_considered); 657 static void LogNumberOfProfilesConsideredForDedupe(size_t num_considered);
658 658
659 // Log how many profiles were removed as part of the deduplication process. 659 // Log how many profiles were removed as part of the deduplication process.
660 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed); 660 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed);
661 661
662 // Log whether the Autofill query on a credit card form is made in a secure 662 // Log whether the Autofill query on a credit card form is made in a secure
663 // context. 663 // context.
664 static void LogIsQueriedCreditCardFormSecure(bool is_secure); 664 static void LogIsQueriedCreditCardFormSecure(bool is_secure);
665 665
666 // This should be called when the user selects the Form-Not-Secure warning
667 // suggestion to show an explanation of the warning.
668 static void LogShowedHttpNotSecureExplanation();
669
666 // Utility to autofill form events in the relevant histograms depending on 670 // Utility to autofill form events in the relevant histograms depending on
667 // the presence of server and/or local data. 671 // the presence of server and/or local data.
668 class FormEventLogger { 672 class FormEventLogger {
669 public: 673 public:
670 FormEventLogger(bool is_for_credit_card); 674 FormEventLogger(bool is_for_credit_card);
671 675
672 inline void set_is_server_data_available(bool is_server_data_available) { 676 inline void set_is_server_data_available(bool is_server_data_available) {
673 is_server_data_available_ = is_server_data_available; 677 is_server_data_available_ = is_server_data_available;
674 } 678 }
675 679
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 FormFieldData last_polled_field_; 718 FormFieldData last_polled_field_;
715 }; 719 };
716 720
717 private: 721 private:
718 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 722 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
719 }; 723 };
720 724
721 } // namespace autofill 725 } // namespace autofill
722 726
723 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 727 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698