From d8e41ed4a55e60be60d47de5bbcb8a027e85a879 Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Thu, 11 Sep 2008 15:22:32 +0000 Subject: Renames BoomarkBarModel to BookmarkModel. BUG=none TEST=none Review URL: http://codereview.chromium.org/1912 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2057 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/history_model.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome/browser/history_model.cc') diff --git a/chrome/browser/history_model.cc b/chrome/browser/history_model.cc index 64baf0c..638000c 100644 --- a/chrome/browser/history_model.cc +++ b/chrome/browser/history_model.cc @@ -4,7 +4,7 @@ #include "chrome/browser/history_model.h" -#include "chrome/browser/bookmarks/bookmark_bar_model.h" +#include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/profile.h" // The max number of results to retrieve when browsing user's history. @@ -61,8 +61,7 @@ history::URLID HistoryModel::GetURLID(int index) { bool HistoryModel::IsStarred(int index) { if (star_state_[index] == UNKNOWN) { - bool is_starred = - profile_->GetBookmarkBarModel()->IsBookmarked(GetURL(index)); + bool is_starred = profile_->GetBookmarkModel()->IsBookmarked(GetURL(index)); star_state_[index] = is_starred ? STARRED : NOT_STARRED; } return (star_state_[index] == STARRED); @@ -171,7 +170,7 @@ void HistoryModel::SetPageStarred(int index, bool state) { if (observer_) observer_->ModelChanged(false); - BookmarkBarModel* bb_model = profile_->GetBookmarkBarModel(); + BookmarkModel* bb_model = profile_->GetBookmarkModel(); if (bb_model) bb_model->SetURLStarred(result.url(), result.title(), state); } -- cgit v1.1