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

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: 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/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 24c9207562c69474d33a732edd929b8ba2ceb5a3..27694ad4b7b9e5547c6dbce2dcd5a42c19b3690d 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) {
« no previous file with comments | « components/autofill/core/browser/form_structure_unittest.cc ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698