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

Unified Diff: chrome/browser/autocomplete/in_memory_url_index_unittest.cc

Issue 1197243004: Replace some Tokenize calls with SplitString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android 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 | « base/trace_event/trace_event_memory.cc ('k') | chrome/browser/chromeos/events/event_rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/in_memory_url_index_unittest.cc
diff --git a/chrome/browser/autocomplete/in_memory_url_index_unittest.cc b/chrome/browser/autocomplete/in_memory_url_index_unittest.cc
index dc2e2dcae7099403c93d323381d3957bbfcf3282..c4d97788cb2f0c5415038bc90a5ba757d08d6fd9 100644
--- a/chrome/browser/autocomplete/in_memory_url_index_unittest.cc
+++ b/chrome/browser/autocomplete/in_memory_url_index_unittest.cc
@@ -13,6 +13,7 @@
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
+#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -68,7 +69,9 @@ void StringToTerms(const char* search_string,
lower_string->insert(cursor_position, base::ASCIIToUTF16(" "));
}
- Tokenize(*lower_string, base::kWhitespaceUTF16, lower_terms);
+ *lower_terms = base::SplitString(*lower_string, base::kWhitespaceUTF16,
+ base::KEEP_WHITESPACE,
+ base::SPLIT_WANT_NONEMPTY);
}
} // namespace
« no previous file with comments | « base/trace_event/trace_event_memory.cc ('k') | chrome/browser/chromeos/events/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698