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

Side by Side Diff: components/autofill/core/common/autofill_util.cc

Issue 2411333004: Make HasAutocompleteAttributeValue handle multi-valued strings (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698