summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/new_tab_ui.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/dom_ui/new_tab_ui.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/dom_ui/new_tab_ui.cc')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index 187e25a..b5cdf52 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -508,7 +508,7 @@ RecentlyBookmarkedHandler::~RecentlyBookmarkedHandler() {
void RecentlyBookmarkedHandler::HandleGetRecentlyBookmarked(const Value*) {
if (!model_) {
- model_ = dom_ui_host_->profile()->GetBookmarkBarModel();
+ model_ = dom_ui_host_->profile()->GetBookmarkModel();
model_->AddObserver(this);
}
// If the model is loaded, synchronously send the bookmarks down. Otherwise
@@ -518,11 +518,11 @@ void RecentlyBookmarkedHandler::HandleGetRecentlyBookmarked(const Value*) {
}
void RecentlyBookmarkedHandler::SendBookmarksToPage() {
- std::vector<BookmarkBarNode*> recently_bookmarked;
+ std::vector<BookmarkNode*> recently_bookmarked;
model_->GetMostRecentlyAddedEntries(kRecentBookmarks, &recently_bookmarked);
ListValue list_value;
for (size_t i = 0; i < recently_bookmarked.size(); ++i) {
- BookmarkBarNode* node = recently_bookmarked[i];
+ BookmarkNode* node = recently_bookmarked[i];
DictionaryValue* entry_value = new DictionaryValue;
SetURLAndTitle(entry_value, node->GetTitle(), node->GetURL());
list_value.Append(entry_value);
@@ -530,24 +530,24 @@ void RecentlyBookmarkedHandler::SendBookmarksToPage() {
dom_ui_host_->CallJavascriptFunction(L"recentlyBookmarked", list_value);
}
-void RecentlyBookmarkedHandler::Loaded(BookmarkBarModel* model) {
+void RecentlyBookmarkedHandler::Loaded(BookmarkModel* model) {
SendBookmarksToPage();
}
-void RecentlyBookmarkedHandler::BookmarkNodeAdded(BookmarkBarModel* model,
- BookmarkBarNode* parent,
+void RecentlyBookmarkedHandler::BookmarkNodeAdded(BookmarkModel* model,
+ BookmarkNode* parent,
int index) {
SendBookmarksToPage();
}
-void RecentlyBookmarkedHandler::BookmarkNodeRemoved(BookmarkBarModel* model,
- BookmarkBarNode* parent,
+void RecentlyBookmarkedHandler::BookmarkNodeRemoved(BookmarkModel* model,
+ BookmarkNode* parent,
int index) {
SendBookmarksToPage();
}
-void RecentlyBookmarkedHandler::BookmarkNodeChanged(BookmarkBarModel* model,
- BookmarkBarNode* node) {
+void RecentlyBookmarkedHandler::BookmarkNodeChanged(BookmarkModel* model,
+ BookmarkNode* node) {
SendBookmarksToPage();
}