Chromium Code Reviews| 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..b0a29d9f14d7f3fd8210dbee47b9afb026cceb44 100644 |
| --- a/components/autofill/core/common/autofill_util.cc |
| +++ b/components/autofill/core/common/autofill_util.cc |
| @@ -132,4 +132,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::KEEP_WHITESPACE, |
|
vabr (Chromium)
2016/10/13 12:49:31
I'm curious about the KEEP_WHITESPACE:
Because whi
jdoerrie
2016/10/13 13:45:07
I agree, changed it to TRIM_WHITESPACE.
|
| + base::SPLIT_WANT_NONEMPTY); |
| +} |
| + |
| } // namespace autofill |