Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1151)

Unified Diff: chrome/browser/views/bookmark_manager_view.cc

Issue 118150: Linux bookmark manager first cut. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 1 more file Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/bookmark_manager_view.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_manager_view.cc
===================================================================
--- chrome/browser/views/bookmark_manager_view.cc (revision 17462)
+++ chrome/browser/views/bookmark_manager_view.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/thread.h"
#include "chrome/browser/bookmarks/bookmark_folder_tree_model.h"
#include "chrome/browser/bookmarks/bookmark_html_writer.h"
+#include "chrome/browser/bookmarks/bookmark_manager.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_table_model.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
@@ -36,7 +37,6 @@
#include "views/widget/widget.h"
#include "views/window/window.h"
-
// If non-null, there is an open editor and this is the window it is contained
// in it.
static views::Window* open_window = NULL;
@@ -143,6 +143,19 @@
} // namespace browser
+// BookmarkManager -------------------------------------------------------------
+
+void BookmarkManager::SelectInTree(Profile* profile, BookmarkNode* node) {
+ if (manager && manager->profile() == profile)
+ manager->SelectInTree(node);
+}
+
+void BookmarkManager::Show(Profile* profile) {
+ BookmarkManagerView::Show(profile);
+}
+
+// -----------------------------------------------------------------------------
+
BookmarkManagerView::BookmarkManagerView(Profile* profile)
: profile_(profile->GetOriginalProfile()),
table_view_(NULL),
@@ -232,11 +245,6 @@
open_window = NULL;
}
-// static
-void BookmarkManagerView::RegisterPrefs(PrefService* prefs) {
- prefs->RegisterDictionaryPref(prefs::kBookmarkManagerPlacement);
- prefs->RegisterIntegerPref(prefs::kBookmarkManagerSplitLocation, -1);
-}
// static
void BookmarkManagerView::Show(Profile* profile) {
« no previous file with comments | « chrome/browser/views/bookmark_manager_view.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698