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

Unified Diff: components/autofill/core/browser/autofill_field.cc

Issue 2041863003: [Autofill] Fix the trucating of expiration year inputs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_field_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_field.cc
diff --git a/components/autofill/core/browser/autofill_field.cc b/components/autofill/core/browser/autofill_field.cc
index 19f2ce8ca0fcbdd76865f84558f6b3cb981e017b..5b37c091b3de386dac0d309d639734412df3e621 100644
--- a/components/autofill/core/browser/autofill_field.cc
+++ b/components/autofill/core/browser/autofill_field.cc
@@ -616,7 +616,7 @@ bool AutofillField::FillFormField(const AutofillField& field,
return true;
} else if (type.GetStorableType() == ADDRESS_HOME_STATE) {
return FillStateText(value, field_data);
- } else if (field_data->form_control_type == "input" &&
+ } else if (field_data->form_control_type == "text" &&
(type.GetStorableType() == CREDIT_CARD_EXP_2_DIGIT_YEAR ||
type.GetStorableType() == CREDIT_CARD_EXP_4_DIGIT_YEAR)) {
FillExpirationYearInput(value, type.GetStorableType(), field_data);
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698