Chromium Code Reviews| 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. |