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

Unified Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 years, 6 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/content/renderer/autofill_agent.cc
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
index b6686c3cb5eb678c7b96f121ea07cdef8f133984..f73e5912deb79ab6a5edfedc389e73908c0eaaeb 100644
--- a/components/autofill/content/renderer/autofill_agent.cc
+++ b/components/autofill/content/renderer/autofill_agent.cc
@@ -97,9 +97,8 @@ void GetDataListSuggestions(const WebInputElement& element,
}
for (WebOptionElement option = options.firstItem().to<WebOptionElement>();
!option.isNull(); option = options.nextItem().to<WebOptionElement>()) {
- if (!StartsWith(option.value(), prefix, false) ||
- option.value() == prefix ||
- !element.isValidValue(option.value()))
+ if (!base::StartsWith(option.value(), prefix, false) ||
+ option.value() == prefix || !element.isValidValue(option.value()))
continue;
values->push_back(option.value());

Powered by Google App Engine
This is Rietveld 408576698