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

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

Issue 1694443004: [Autofill] Add credit card first and last name heuristics predictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 71d49558bc902404652a1743e157f1ffd61b0782..16a53a12a45eccc91e13b6d513c225390aec6739 100644
--- a/components/autofill/core/browser/autofill_type.cc
+++ b/components/autofill/core/browser/autofill_type.cc
@@ -103,6 +103,8 @@ FieldTypeGroup AutofillType::group() const {
return ADDRESS_BILLING;
case CREDIT_CARD_NAME:
Mathieu 2016/02/23 15:23:03 should probably rename CREDIT_CARD_NAME_FULL.
sebsg 2016/02/24 18:49:44 Done.
+ case CREDIT_CARD_NAME_FIRST:
+ case CREDIT_CARD_NAME_LAST:
case CREDIT_CARD_NUMBER:
case CREDIT_CARD_EXP_MONTH:
case CREDIT_CARD_EXP_2_DIGIT_YEAR:
@@ -572,6 +574,10 @@ std::string AutofillType::ToString() const {
return "ADDRESS_BILLING_COUNTRY";
case CREDIT_CARD_NAME:
return "CREDIT_CARD_NAME";
+ case CREDIT_CARD_NAME_FIRST:
+ return "CREDIT_CARD_NAME_FIRST";
+ case CREDIT_CARD_NAME_LAST:
+ return "CREDIT_CARD_NAME_LAST";
case CREDIT_CARD_NUMBER:
return "CREDIT_CARD_NUMBER";
case CREDIT_CARD_EXP_MONTH:

Powered by Google App Engine
This is Rietveld 408576698