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

Unified Diff: components/omnibox/answers_cache.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
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | components/omnibox/base_search_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/answers_cache.cc
diff --git a/components/omnibox/answers_cache.cc b/components/omnibox/answers_cache.cc
index 00d8c3f9f84b1f0481282ad1f8153124857648b9..35cf5a38fab24752ab1d01b70d5fde9e489a4548 100644
--- a/components/omnibox/answers_cache.cc
+++ b/components/omnibox/answers_cache.cc
@@ -23,7 +23,7 @@ AnswersQueryData AnswersCache::GetTopAnswerEntry(const base::string16& query) {
base::string16 collapsed_query = base::CollapseWhitespace(query, false);
for (Cache::iterator it = cache_.begin(); it != cache_.end(); ++it) {
// If the query text starts with trimmed input, this is valid prefetch data.
- if (StartsWith(it->full_query_text, collapsed_query, false)) {
+ if (base::StartsWith(it->full_query_text, collapsed_query, false)) {
// Move the touched item to the front of the list.
cache_.splice(cache_.begin(), cache_, it);
return cache_.front();
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | components/omnibox/base_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698