From a80edd4bf4e8f692fd02a7108a490d7921cc53b9 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Fri, 6 Feb 2009 22:37:13 +0000 Subject: Add a method to CommandUpdater to remove an observer from all commands at once. Review URL: http://codereview.chromium.org/21140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9350 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/tab_contents_controller.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'chrome/browser/cocoa') diff --git a/chrome/browser/cocoa/tab_contents_controller.mm b/chrome/browser/cocoa/tab_contents_controller.mm index c6d25a7..6f4a88e 100644 --- a/chrome/browser/cocoa/tab_contents_controller.mm +++ b/chrome/browser/cocoa/tab_contents_controller.mm @@ -166,11 +166,7 @@ TabContentsCommandObserver::TabContentsCommandObserver( TabContentsCommandObserver::~TabContentsCommandObserver() { // Unregister the notifications - commands_->RemoveCommandObserver(IDC_BACK, this); - commands_->RemoveCommandObserver(IDC_FORWARD, this); - commands_->RemoveCommandObserver(IDC_RELOAD, this); - commands_->RemoveCommandObserver(IDC_HOME, this); - commands_->RemoveCommandObserver(IDC_STAR, this); + commands_->RemoveCommandObserver(this); } void TabContentsCommandObserver::EnabledStateChangedForCommand(int command, -- cgit v1.1