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..57da85405b4df6d16675be8ced2dba9b0bd0f65a 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 |
|
Mark P
2014/02/28 15:48:03
This is merely making a private anonymous-namescap
|
| + // coalesces any match positions that intersect each other. |
| + static void CoalseAndSortMatchPositions(Snippet::MatchPositions* matches); |
|
Peter Kasting
2014/02/28 22:18:57
Coalse -> Coalesce
Mark P
2014/04/16 22:39:16
Done.
|
| + |
| private: |
| // Does the work of parsing |query|; creates nodes in |root| as appropriate. |
| // This is invoked from both of the ParseQuery methods. |