summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history_model.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-11 15:22:32 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-11 15:22:32 +0000
commitd8e41ed4a55e60be60d47de5bbcb8a027e85a879 (patch)
treee0feaa030fe3834c0fc871de7564ef74e9595b05 /chrome/browser/history_model.cc
parent7903e0262e2dda44eaa186d126cf88e2cc1470eb (diff)
downloadchromium_src-d8e41ed4a55e60be60d47de5bbcb8a027e85a879.zip
chromium_src-d8e41ed4a55e60be60d47de5bbcb8a027e85a879.tar.gz
chromium_src-d8e41ed4a55e60be60d47de5bbcb8a027e85a879.tar.bz2
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
Diffstat (limited to 'chrome/browser/history_model.cc')
-rw-r--r--chrome/browser/history_model.cc7
1 files changed, 3 insertions, 4 deletions
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);
}