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 75f89cec002c5a7f6ad6873d590e47b60bc40b5a..dc67c87f43dd4b1006c34171dd750292c07f6aa7 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(field_type.field_type(), CREDIT_CARD_EXP_MONTH); |
Ilya Sherman
2011/01/10 20:08:48
nit: I believe that the macro expects the argument
honten.org
2011/01/25 05:19:24
Done.
|
+ imported_credit_card_->SetInfoForMonthInputType(value); |
+ } else { |
+ imported_credit_card_->SetInfo( |
+ AutoFillType(field_type.field_type()), value); |
+ } |
++importable_credit_card_fields; |
} |
} else { |