diff options
Diffstat (limited to 'chrome/browser/extensions')
| -rw-r--r-- | chrome/browser/extensions/api/autofill_private/autofill_private_api.cc | 5 | ||||
| -rw-r--r-- | chrome/browser/extensions/api/autofill_private/autofill_util.cc | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc b/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc index 3bb54eb..10ace1a 100644 --- a/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc +++ b/chrome/browser/extensions/api/autofill_private/autofill_private_api.cc @@ -326,9 +326,8 @@ ExtensionFunction::ResponseAction AutofillPrivateSaveCreditCardFunction::Run() { autofill::CreditCard credit_card(guid, kSettingsOrigin); if (card->name) { - credit_card.SetRawInfo( - autofill::CREDIT_CARD_NAME, - base::UTF8ToUTF16(*card->name)); + credit_card.SetRawInfo(autofill::CREDIT_CARD_NAME_FULL, + base::UTF8ToUTF16(*card->name)); } if (card->card_number) { diff --git a/chrome/browser/extensions/api/autofill_private/autofill_util.cc b/chrome/browser/extensions/api/autofill_private/autofill_util.cc index e4ebbf5..04d5eb1 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( |
