diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 20:40:04 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 20:40:04 +0000 |
commit | b9437d1e6d77bb0b56c2c408b6e172e1c517a87e (patch) | |
tree | 9ccac85edb316561289bc678360a866b3899bdfc /chrome/browser/bookmarks/bookmark_context_menu.h | |
parent | d2e884d22945641cc92afa1a7d29329b75809ce8 (diff) | |
download | chromium_src-b9437d1e6d77bb0b56c2c408b6e172e1c517a87e.zip chromium_src-b9437d1e6d77bb0b56c2c408b6e172e1c517a87e.tar.gz chromium_src-b9437d1e6d77bb0b56c2c408b6e172e1c517a87e.tar.bz2 |
Rebuild the bookmark context menu from scratch when selection changes.
Since the "remove" item always causes selection to change, we don't have to worry about trying to call remove twice with the same context menu.
TEST=see bug. Also, no new crashes on linux.
BUG=14443
Review URL: http://codereview.chromium.org/132048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_context_menu.h')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_context_menu.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/bookmarks/bookmark_context_menu.h b/chrome/browser/bookmarks/bookmark_context_menu.h index 4bc1e35..9903f44 100644 --- a/chrome/browser/bookmarks/bookmark_context_menu.h +++ b/chrome/browser/bookmarks/bookmark_context_menu.h @@ -78,12 +78,6 @@ class BookmarkContextMenu : public BookmarkModelObserver, GtkWidget* menu() const { return menu_->widget(); } #endif - void set_parent(BookmarkNode* parent) { parent_ = parent; } - - void set_selection(const std::vector<BookmarkNode*>& selection) { - selection_ = selection; - } - // Menu::Delegate / MenuGtk::Delegate methods. virtual void ExecuteCommand(int id); virtual bool IsItemChecked(int id) const; |