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

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

Issue 2773433002: Log observations of explicit UPI-VPA autocomplete hints. (Closed)
Patch Set: Initial CL Created 3 years, 9 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 static void LogIsQueriedCreditCardFormSecure(bool is_secure); 683 static void LogIsQueriedCreditCardFormSecure(bool is_secure);
684 684
685 // Log how the converted wallet address was added to the local autofill 685 // Log how the converted wallet address was added to the local autofill
686 // profiles. 686 // profiles.
687 static void LogWalletAddressConversionType(WalletAddressConversionType type); 687 static void LogWalletAddressConversionType(WalletAddressConversionType type);
688 688
689 // This should be called when the user selects the Form-Not-Secure warning 689 // This should be called when the user selects the Form-Not-Secure warning
690 // suggestion to show an explanation of the warning. 690 // suggestion to show an explanation of the warning.
691 static void LogShowedHttpNotSecureExplanation(); 691 static void LogShowedHttpNotSecureExplanation();
692 692
693 // Logs the observation of an explicit autocomplete="upi-vpa" form field
694 // type hint.
695 static void LogExplicitUpiVpaHint();
696
693 // Logs the card upload decision ukm based on the specified |url| and 697 // Logs the card upload decision ukm based on the specified |url| and
694 // |upload_decision|. 698 // |upload_decision|.
695 static void LogCardUploadDecisionUkm( 699 static void LogCardUploadDecisionUkm(
696 ukm::UkmService* ukm_service, 700 ukm::UkmService* ukm_service,
697 const GURL& url, 701 const GURL& url,
698 AutofillMetrics::CardUploadDecisionMetric upload_decision); 702 AutofillMetrics::CardUploadDecisionMetric upload_decision);
699 703
700 // Logs the the |ukm_entry_name| with the specified |url| and the specified 704 // Logs the the |ukm_entry_name| with the specified |url| and the specified
701 // |metrics|. Returns whether the ukm was sucessfully logged. 705 // |metrics|. Returns whether the ukm was sucessfully logged.
702 static bool LogUkm(ukm::UkmService* ukm_service, 706 static bool LogUkm(ukm::UkmService* ukm_service,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 FormFieldData last_polled_field_; 764 FormFieldData last_polled_field_;
761 }; 765 };
762 766
763 private: 767 private:
764 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 768 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
765 }; 769 };
766 770
767 } // namespace autofill 771 } // namespace autofill
768 772
769 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 773 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698