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

Unified Diff: components/autofill/core/browser/payments/payments_client.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: Patch2 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/payments/payments_client.cc
diff --git a/components/autofill/core/browser/payments/payments_client.cc b/components/autofill/core/browser/payments/payments_client.cc
index c938fb1e2c1bea1c4a868e8f65dd958e8cf0ca19..fc248206841e1afb60cf816a947ddaac310e8a77 100644
--- a/components/autofill/core/browser/payments/payments_client.cc
+++ b/components/autofill/core/browser/payments/payments_client.cc
@@ -294,9 +294,10 @@ class UploadCardRequest : public PaymentsRequest {
context->SetString("language_code", app_locale);
request_dict.Set("context", std::move(context));
- request_dict.SetString("cardholder_name",
- request_details_.card.GetInfo(
- AutofillType(CREDIT_CARD_NAME), app_locale));
+ request_dict.SetString(
+ "cardholder_name",
+ request_details_.card.GetInfo(AutofillType(CREDIT_CARD_NAME_FULL),
+ app_locale));
scoped_ptr<base::ListValue> addresses(new base::ListValue());
for (const AutofillProfile& profile : request_details_.profiles) {

Powered by Google App Engine
This is Rietveld 408576698