Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/core/common/autofill_util.h" | 5 #include "components/autofill/core/common/autofill_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 } else { | 125 } else { |
| 126 if (isCheckable) { | 126 if (isCheckable) { |
| 127 form_field_data->check_status = | 127 form_field_data->check_status = |
| 128 FormFieldData::CheckStatus::CHECKABLE_BUT_UNCHECKED; | 128 FormFieldData::CheckStatus::CHECKABLE_BUT_UNCHECKED; |
| 129 } else { | 129 } else { |
| 130 form_field_data->check_status = FormFieldData::CheckStatus::NOT_CHECKABLE; | 130 form_field_data->check_status = FormFieldData::CheckStatus::NOT_CHECKABLE; |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 std::vector<std::string> LowercaseAndTokenizeAttributeString( | |
| 136 const std::string& attribute) { | |
| 137 return base::SplitString(base::ToLowerASCII(attribute), | |
| 138 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.
| |
| 139 base::SPLIT_WANT_NONEMPTY); | |
| 140 } | |
| 141 | |
| 135 } // namespace autofill | 142 } // namespace autofill |
| OLD | NEW |