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

Unified Diff: chrome/browser/bookmarks/bookmark_model.cc

Issue 165455: Autocomplete suggestions for bookmark TitleMatch's does not order matching bo... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « chrome/browser/bookmarks/bookmark_index_unittest.cc ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_model.cc (revision 24426)
+++ chrome/browser/bookmarks/bookmark_model.cc (working copy)
@@ -36,7 +36,7 @@
}
BookmarkNode::BookmarkNode(int64 id, const GURL& url)
- : url_(url){
+ : url_(url) {
Initialize(id);
}
@@ -78,7 +78,7 @@
namespace {
// Comparator used when sorting bookmarks. Folders are sorted first, then
- // bookmarks.
+// bookmarks.
class SortComparator : public std::binary_function<const BookmarkNode*,
const BookmarkNode*,
bool> {
@@ -510,7 +510,7 @@
// RemoveNode adds an entry to changed_urls for each node of type URL. As we
// allow duplicates we need to remove any entries that are still bookmarked.
for (std::set<GURL>::iterator i = details.changed_urls.begin();
- i != details.changed_urls.end(); ){
+ i != details.changed_urls.end(); ) {
if (IsBookmarkedNoLock(*i)) {
// When we erase the iterator pointing at the erasee is
// invalidated, so using i++ here within the "erase" call is
@@ -727,5 +727,5 @@
BookmarkNode* bb_node = CreateBookmarkNode();
BookmarkNode* other_folder_node = CreateOtherBookmarksNode();
return new BookmarkStorage::LoadDetails(
- bb_node, other_folder_node, new BookmarkIndex(), next_node_id_);
+ bb_node, other_folder_node, new BookmarkIndex(profile()), next_node_id_);
}
« no previous file with comments | « chrome/browser/bookmarks/bookmark_index_unittest.cc ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698