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

Unified Diff: chrome/browser/autofill/form_field.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
« no previous file with comments | « chrome/browser/autofill/credit_card_field_unittest.cc ('k') | chrome/browser/autofill/form_structure.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/form_field.cc
diff --git a/chrome/browser/autofill/form_field.cc b/chrome/browser/autofill/form_field.cc
index 4de1c802b1010006576d78ec04fdbe692775a2c4..76ecb8758a5c94a6f0a3a8a5ff9b442ac87ab2ab 100644
--- a/chrome/browser/autofill/form_field.cc
+++ b/chrome/browser/autofill/form_field.cc
@@ -27,20 +27,20 @@
namespace {
-bool IsTextField(const string16& type) {
- return type == ASCIIToUTF16("text");
+bool IsTextField(const std::string& type) {
+ return type == "text";
}
-bool IsEmailField(const string16& type) {
- return type == ASCIIToUTF16("email");
+bool IsEmailField(const std::string& type) {
+ return type == "email";
}
-bool IsTelephoneField(const string16& type) {
- return type == ASCIIToUTF16("tel");
+bool IsTelephoneField(const std::string& type) {
+ return type == "tel";
}
-bool IsSelectField(const string16& type) {
- return type == ASCIIToUTF16("select-one");
+bool IsSelectField(const std::string& type) {
+ return type == "select-one";
}
} // namespace
« no previous file with comments | « chrome/browser/autofill/credit_card_field_unittest.cc ('k') | chrome/browser/autofill/form_structure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698