diff options
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_table_model.cc')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_table_model.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/bookmarks/bookmark_table_model.cc b/chrome/browser/bookmarks/bookmark_table_model.cc index a9122fa..234628d 100644 --- a/chrome/browser/bookmarks/bookmark_table_model.cc +++ b/chrome/browser/bookmarks/bookmark_table_model.cc @@ -10,6 +10,7 @@ #include "base/time.h" #include "base/time_format.h" #include "chrome/app/theme/theme_resources.h" +#include "chrome/browser/bookmarks/bookmark_utils.h" #include "chrome/common/resource_bundle.h" #include "googleurl/src/gurl.h" @@ -185,7 +186,9 @@ class RecentlyBookmarkedTableModel : public VectorBackedBookmarkTableModel { private: void UpdateRecentlyBookmarked() { nodes().clear(); - model()->GetMostRecentlyAddedEntries(kRecentlyBookmarkedCount, &nodes()); + bookmark_utils::GetMostRecentlyAddedEntries(model(), + kRecentlyBookmarkedCount, + &nodes()); if (observer()) observer()->OnModelChanged(); } @@ -201,9 +204,9 @@ class BookmarkSearchTableModel : public VectorBackedBookmarkTableModel { const std::wstring& search_text) : VectorBackedBookmarkTableModel(model), search_text_(search_text) { - std::vector<BookmarkModel::TitleMatch> matches; - model->GetBookmarksMatchingText(search_text, - std::numeric_limits<int>::max(), &matches); + std::vector<bookmark_utils::TitleMatch> matches; + bookmark_utils::GetBookmarksMatchingText( + model, search_text, std::numeric_limits<int>::max(), &matches); for (size_t i = 0; i < matches.size(); ++i) nodes().push_back(matches[i].node); } @@ -212,7 +215,7 @@ class BookmarkSearchTableModel : public VectorBackedBookmarkTableModel { BookmarkNode* parent, int index) { BookmarkNode* node = parent->GetChild(index); - if (model->DoesBookmarkMatchText(search_text_, node)) { + if (bookmark_utils::DoesBookmarkMatchText(search_text_, node)) { nodes().push_back(node); if (observer()) observer()->OnItemsAdded(static_cast<int>(nodes().size() - 1), 1); |