summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
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/views
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/views')
-rw-r--r--chrome/browser/views/bookmark_bubble_view.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_bubble_view.cc b/chrome/browser/views/bookmark_bubble_view.cc
index a15e939..626fd80 100644
--- a/chrome/browser/views/bookmark_bubble_view.cc
+++ b/chrome/browser/views/bookmark_bubble_view.cc
@@ -7,6 +7,7 @@
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/app/theme/theme_resources.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/user_metrics.h"
#include "chrome/browser/views/bookmark_editor_view.h"
@@ -53,7 +54,8 @@ static SkBitmap* kCloseImage = NULL;
BookmarkBubbleView::RecentlyUsedFoldersModel::RecentlyUsedFoldersModel(
BookmarkModel* bb_model, BookmarkNode* node)
// Use + 2 to account for bookmark bar and other node.
- : nodes_(bb_model->GetMostRecentlyModifiedGroups(kMaxMRUFolders + 2)),
+ : nodes_(bookmark_utils::GetMostRecentlyModifiedGroups(
+ bb_model, kMaxMRUFolders + 2)),
node_parent_index_(0) {
// TODO(sky): bug 1173415 add a separator in the combobox here.