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

Unified Diff: components/autofill/core/common/autofill_util.cc

Issue 2411333004: Make HasAutocompleteAttributeValue handle multi-valued strings (Closed)
Patch Set: Make HasAutocompleteAttributeValue handle multi-valued strings Created 4 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: components/autofill/core/common/autofill_util.cc
diff --git a/components/autofill/core/common/autofill_util.cc b/components/autofill/core/common/autofill_util.cc
index faf019e8cdbecb36a56069c90ca5113bf30f1746..bc458a9609cd5331fc11fb2800dd4798eb9ec76d 100644
--- a/components/autofill/core/common/autofill_util.cc
+++ b/components/autofill/core/common/autofill_util.cc
@@ -5,7 +5,6 @@
#include "components/autofill/core/common/autofill_util.h"
#include <algorithm>
-#include <vector>
#include "base/command_line.h"
#include "base/i18n/case_conversion.h"
@@ -132,4 +131,11 @@ void SetCheckStatus(FormFieldData* form_field_data,
}
}
+std::vector<std::string> LowercaseAndTokenizeAttributeString(
+ const std::string& attribute) {
+ return base::SplitString(base::ToLowerASCII(attribute),
+ base::kWhitespaceASCII, base::TRIM_WHITESPACE,
+ base::SPLIT_WANT_NONEMPTY);
+}
+
} // namespace autofill
« no previous file with comments | « components/autofill/core/common/autofill_util.h ('k') | components/autofill/core/common/autofill_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698