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

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

Issue 11198048: [Autofill] Update the autocomplete types implementation to match the current HTML spec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update AutofillFieldTest expectations Created 8 years, 2 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/autocomplete_history_manager.cc
diff --git a/chrome/browser/autofill/autocomplete_history_manager.cc b/chrome/browser/autofill/autocomplete_history_manager.cc
index 412fd8c5694efefc2b5114d9465df81243893229..438113b9163cc24106570325344f0b9fba80dc01 100644
--- a/chrome/browser/autofill/autocomplete_history_manager.cc
+++ b/chrome/browser/autofill/autocomplete_history_manager.cc
@@ -96,12 +96,12 @@ bool IsSSN(const string16& text) {
bool IsTextField(const FormFieldData& field) {
return
- field.form_control_type == ASCIIToUTF16("text") ||
- field.form_control_type == ASCIIToUTF16("search") ||
- field.form_control_type == ASCIIToUTF16("tel") ||
- field.form_control_type == ASCIIToUTF16("url") ||
- field.form_control_type == ASCIIToUTF16("email") ||
- field.form_control_type == ASCIIToUTF16("text");
+ field.form_control_type == "text" ||
+ field.form_control_type == "search" ||
+ field.form_control_type == "tel" ||
+ field.form_control_type == "url" ||
+ field.form_control_type == "email" ||
+ field.form_control_type == "text";
}
} // namespace
« no previous file with comments | « chrome/browser/autofill/address_field_unittest.cc ('k') | chrome/browser/autofill/autocomplete_history_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698