diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 00:06:26 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 00:06:26 +0000 |
commit | 809524dd7db9e9600dd368ef0a7fa1b60ac4a4bc (patch) | |
tree | f8c5bf8f9760a8e1c6c4b72d5e7cf79896e2f03a /chrome/browser/bookmarks/bookmark_context_menu_controller.cc | |
parent | 5cd12520bd6c53d18c6bad13b000483264c5fe1d (diff) | |
download | chromium_src-809524dd7db9e9600dd368ef0a7fa1b60ac4a4bc.zip chromium_src-809524dd7db9e9600dd368ef0a7fa1b60ac4a4bc.tar.gz chromium_src-809524dd7db9e9600dd368ef0a7fa1b60ac4a4bc.tar.bz2 |
Make all entry points to opening the bookmark manager go through Browser::ShowBookmarkManager.
This covers views and gtk.
BUG=37372
TEST=None
Review URL: http://codereview.chromium.org/826002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_context_menu_controller.cc')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_context_menu_controller.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/bookmarks/bookmark_context_menu_controller.cc b/chrome/browser/bookmarks/bookmark_context_menu_controller.cc index 007aeba..7e9162a 100644 --- a/chrome/browser/bookmarks/bookmark_context_menu_controller.cc +++ b/chrome/browser/bookmarks/bookmark_context_menu_controller.cc @@ -10,6 +10,8 @@ #include "chrome/browser/bookmarks/bookmark_manager.h" #include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/bookmarks/bookmark_utils.h" +#include "chrome/browser/browser.h" +#include "chrome/browser/browser_list.h" #include "chrome/browser/input_window_dialog.h" #include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/pref_service.h" @@ -397,7 +399,13 @@ void BookmarkContextMenuController::ExecuteCommand(int id) { case IDS_BOOKMARK_MANAGER: UserMetrics::RecordAction("ShowBookmarkManager", profile_); - BookmarkManager::Show(profile_); + { + Browser* browser = BrowserList::GetLastActiveWithProfile(profile_); + if (browser) + browser->OpenBookmarkManager(); + else + NOTREACHED(); + } break; case IDS_BOOKMARK_MANAGER_SORT: |