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

Unified Diff: components/autofill/core/browser/server_field_types_util.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: Rebase 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/server_field_types_util.cc
diff --git a/components/autofill/core/browser/server_field_types_util.cc b/components/autofill/core/browser/server_field_types_util.cc
index 1d004f5ca5503eb7dcf92a380e940c7f46b009eb..6d27d3e576accf67878db0794f353cdc4d060822 100644
--- a/components/autofill/core/browser/server_field_types_util.cc
+++ b/components/autofill/core/browser/server_field_types_util.cc
@@ -51,7 +51,7 @@ bool ServerTypeMatchesField(DialogSection section,
AutofillType field_type = field.Type();
// The credit card name is filled from the billing section's data.
- if (field_type.GetStorableType() == CREDIT_CARD_NAME &&
+ if (field_type.GetStorableType() == CREDIT_CARD_NAME_FULL &&
section == SECTION_BILLING) {
return type == NAME_BILLING_FULL;
}

Powered by Google App Engine
This is Rietveld 408576698