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

Unified Diff: chrome/browser/extensions/api/autofill_private/autofill_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: chrome/browser/extensions/api/autofill_private/autofill_util.cc
diff --git a/chrome/browser/extensions/api/autofill_private/autofill_util.cc b/chrome/browser/extensions/api/autofill_private/autofill_util.cc
index e4ebbf5f87868a14ec5ebd0e4003e3b0fb60dedf..04d5eb1e6c0bd3929548ae3c46b114c50b77a6c5 100644
--- a/chrome/browser/extensions/api/autofill_private/autofill_util.cc
+++ b/chrome/browser/extensions/api/autofill_private/autofill_util.cc
@@ -119,7 +119,7 @@ scoped_ptr<autofill_private::CreditCardEntry> CreditCardToCreditCardEntry(
// Add all credit card fields to the entry.
card->guid.reset(new std::string(credit_card.guid()));
card->name.reset(new std::string(base::UTF16ToUTF8(
- credit_card.GetRawInfo(autofill::CREDIT_CARD_NAME))));
+ credit_card.GetRawInfo(autofill::CREDIT_CARD_NAME_FULL))));
card->card_number.reset(new std::string(base::UTF16ToUTF8(
credit_card.GetRawInfo(autofill::CREDIT_CARD_NUMBER))));
card->expiration_month.reset(new std::string(base::UTF16ToUTF8(

Powered by Google App Engine
This is Rietveld 408576698