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

Unified Diff: chrome/browser/history/query_parser.h

Issue 184663002: Omnibox: Make URLs of Bookmarks Searchable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tested; works Created 6 years, 8 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: chrome/browser/history/query_parser.h
diff --git a/chrome/browser/history/query_parser.h b/chrome/browser/history/query_parser.h
index 69d31dbea4439ee6ed9af4a91932426193536a62..967316a87e65b7679404acaceec344059715f5d4 100644
--- a/chrome/browser/history/query_parser.h
+++ b/chrome/browser/history/query_parser.h
@@ -101,6 +101,10 @@ class QueryParser {
void ExtractQueryWords(const base::string16& text,
std::vector<QueryWord>* words);
+ // Sorts the match positions in |matches| by their first index, then
+ // coalesces any match positions that intersect each other.
+ static void CoalesceAndSortMatchPositions(Snippet::MatchPositions* matches);
Peter Kasting 2014/04/16 23:44:25 Nit: If it sorts and then coalesces, name it SortA
Mark P 2014/04/17 20:24:18 Done.
+
private:
// Does the work of parsing |query|; creates nodes in |root| as appropriate.
// This is invoked from both of the ParseQuery methods.

Powered by Google App Engine
This is Rietveld 408576698