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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.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/ui/webui/options/autofill_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index 388ad27cbc8111638e0f316eec242a2190183d77..df458bafc565bce44a2b80c4cdb7e81b62d0dcad 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -453,8 +453,7 @@ void AutofillOptionsHandler::LoadCreditCardEditor(const base::ListValue* args) {
base::DictionaryValue credit_card_data;
credit_card_data.SetString("guid", credit_card->guid());
credit_card_data.SetString(
- "nameOnCard",
- credit_card->GetRawInfo(autofill::CREDIT_CARD_NAME));
+ "nameOnCard", credit_card->GetRawInfo(autofill::CREDIT_CARD_NAME_FULL));
credit_card_data.SetString(
"creditCardNumber",
credit_card->GetRawInfo(autofill::CREDIT_CARD_NUMBER));
@@ -543,7 +542,7 @@ void AutofillOptionsHandler::SetCreditCard(const base::ListValue* args) {
base::string16 value;
if (args->GetString(1, &value))
- credit_card.SetRawInfo(autofill::CREDIT_CARD_NAME, value);
+ credit_card.SetRawInfo(autofill::CREDIT_CARD_NAME_FULL, value);
if (args->GetString(2, &value))
credit_card.SetRawInfo(autofill::CREDIT_CARD_NUMBER, value);
« no previous file with comments | « chrome/browser/ui/autofill/data_model_wrapper.cc ('k') | chrome/test/data/autofill/autofill_creditcard_form.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698