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

Unified Diff: components/autofill/core/browser/autofill_type.cc

Issue 2773433002: Log observations of explicit UPI-VPA autocomplete hints. (Closed)
Patch Set: fix a nit 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/autofill_type.cc
diff --git a/components/autofill/core/browser/autofill_type.cc b/components/autofill/core/browser/autofill_type.cc
index 8dc9dbc85ad69ee12ca86283135b02069bec3716..2b97a2f6eda7863a3257779342ba9d3134aa8d52 100644
--- a/components/autofill/core/browser/autofill_type.cc
+++ b/components/autofill/core/browser/autofill_type.cc
@@ -208,6 +208,10 @@ FieldTypeGroup AutofillType::group() const {
case HTML_TYPE_EMAIL:
return EMAIL;
+ case HTML_TYPE_UPI_VPA:
+ // TODO(crbug/702223): Add support for UPI-VPA.
+ break;
+
case HTML_TYPE_UNSPECIFIED:
case HTML_TYPE_UNRECOGNIZED:
break;
@@ -418,6 +422,10 @@ ServerFieldType AutofillType::GetStorableType() const {
case HTML_TYPE_TRANSACTION_CURRENCY:
return UNKNOWN_TYPE;
+ // TODO(crbug/702223): Add autofill support for UPI-VPA.
+ case HTML_TYPE_UPI_VPA:
+ return UNKNOWN_TYPE;
+
case HTML_TYPE_UNRECOGNIZED:
return UNKNOWN_TYPE;
}
@@ -591,6 +599,8 @@ std::string AutofillType::ToString() const {
return "HTML_TRANSACTION_AMOUNT";
case HTML_TYPE_TRANSACTION_CURRENCY:
return "HTML_TRANSACTION_CURRENCY";
+ case HTML_TYPE_UPI_VPA:
+ return "HTML_TYPE_UPI_VPA";
case HTML_TYPE_UNRECOGNIZED:
return "HTML_TYPE_UNRECOGNIZED";
}
« no previous file with comments | « components/autofill/core/browser/autofill_metrics_unittest.cc ('k') | components/autofill/core/browser/field_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698