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

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 merge error. 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
« no previous file with comments | « chrome/browser/autofill/credit_card_field.cc ('k') | chrome/renderer/autofill/form_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « chrome/browser/autofill/credit_card_field.cc ('k') | chrome/renderer/autofill/form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698