summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 17:34:17 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 17:34:17 +0000
commit9333f1812b353233e6c492a6dfe7efb3a03717a3 (patch)
treebc8701a2588eb73d9773a6a24e052c9c7d28e3a4 /chrome/browser/dom_ui
parent775cfd76d4523b8e932e98214c0b082e20385544 (diff)
downloadchromium_src-9333f1812b353233e6c492a6dfe7efb3a03717a3.zip
chromium_src-9333f1812b353233e6c492a6dfe7efb3a03717a3.tar.gz
chromium_src-9333f1812b353233e6c492a6dfe7efb3a03717a3.tar.bz2
Moves some utility functions out of bookmark model into
bookmark_utils. In addition I've converted to using TreeNodeIterator. This doesn't contain any functionality changes. BUG=4065 TEST=none Review URL: http://codereview.chromium.org/13642 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6589 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index 7d1aa82..f242e38 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -7,6 +7,7 @@
#include "base/histogram.h"
#include "base/string_piece.h"
#include "chrome/app/locales/locale_settings.h"
+#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_resources.h"
@@ -490,7 +491,8 @@ void RecentlyBookmarkedHandler::HandleGetRecentlyBookmarked(const Value*) {
void RecentlyBookmarkedHandler::SendBookmarksToPage() {
std::vector<BookmarkNode*> recently_bookmarked;
- model_->GetMostRecentlyAddedEntries(kRecentBookmarks, &recently_bookmarked);
+ bookmark_utils::GetMostRecentlyAddedEntries(
+ model_, kRecentBookmarks, &recently_bookmarked);
ListValue list_value;
for (size_t i = 0; i < recently_bookmarked.size(); ++i) {
BookmarkNode* node = recently_bookmarked[i];