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

Unified Diff: chrome/browser/autofill/personal_data_manager.cc

Issue 6033010: Support autocompletion for HTMl5 tags:"email", "month" and "tel". (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix format errors and other naming issues. Created 9 years, 11 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/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 {

Powered by Google App Engine
This is Rietveld 408576698