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

Unified Diff: chrome/browser/ui/autofill/data_model_wrapper.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/autofill/data_model_wrapper.cc
diff --git a/chrome/browser/ui/autofill/data_model_wrapper.cc b/chrome/browser/ui/autofill/data_model_wrapper.cc
index 6a71ee36d356791ba09cb62afbb1dc8b5ce80fce..b00e5da12bba2e4d0047beb7fd568b88facfe128 100644
--- a/chrome/browser/ui/autofill/data_model_wrapper.cc
+++ b/chrome/browser/ui/autofill/data_model_wrapper.cc
@@ -110,7 +110,7 @@ base::string16 AutofillProfileWrapper::GetInfo(const AutofillType& type) const {
// but the AutofillProfile class doesn't know how to fill credit card
// fields. So, request for the corresponding profile type instead.
AutofillType effective_type = type;
- if (type.GetStorableType() == CREDIT_CARD_NAME)
+ if (type.GetStorableType() == CREDIT_CARD_NAME_FULL)
effective_type = AutofillType(NAME_BILLING_FULL);
const std::string& app_locale = g_browser_process->GetApplicationLocale();

Powered by Google App Engine
This is Rietveld 408576698