| Index: chrome/browser/autofill/personal_data_manager.cc
|
| diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
|
| index 52b4ca7dd233d3b19e47e6e1b443c57f2a4ddb2d..7168c37cc24303342200ac0faa8ab774e346ab6a 100644
|
| --- a/chrome/browser/autofill/personal_data_manager.cc
|
| +++ b/chrome/browser/autofill/personal_data_manager.cc
|
| @@ -168,8 +168,13 @@ bool PersonalDataManager::ImportFormData(
|
| // If the user has a password set, we have no way of setting credit
|
| // card numbers.
|
| if (!HasPassword()) {
|
| - imported_credit_card_->SetInfo(AutoFillType(field_type.field_type()),
|
| - value);
|
| + if (LowerCaseEqualsASCII(field->form_control_type(), "month")) {
|
| + DCHECK_EQ(CREDIT_CARD_EXP_MONTH, field_type.field_type());
|
| + imported_credit_card_->SetInfoForMonthInputType(value);
|
| + } else {
|
| + imported_credit_card_->SetInfo(
|
| + AutoFillType(field_type.field_type()), value);
|
| + }
|
| ++importable_credit_card_fields;
|
| }
|
| } else {
|
|
|