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

Unified Diff: chrome/browser/bookmarks/bookmark_index.h

Issue 10913262: Implement Bookmark Autocomplete Provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Now handles duplicate term matching. Comments, etc. Created 8 years, 2 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/bookmarks/bookmark_index.h
===================================================================
--- chrome/browser/bookmarks/bookmark_index.h (revision 159706)
+++ chrome/browser/bookmarks/bookmark_index.h (working copy)
@@ -62,8 +62,8 @@
typedef std::pair<const BookmarkNode*, int> NodeTypedCountPair;
typedef std::vector<NodeTypedCountPair> NodeTypedCountPairs;
- // Extracts |matches.nodes| into NodeTypedCountPairs and sorts the pairs in
- // decreasing order of typed count.
+ // Extracts |matches.nodes| into NodeTypedCountPairs, sorts the pairs in
+ // decreasing order of typed count, and then de-dupes the matches.
void SortMatches(const Matches& matches,
NodeTypedCountPairs* node_typed_counts) const;

Powered by Google App Engine
This is Rietveld 408576698