summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 22:37:13 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 22:37:13 +0000
commita80edd4bf4e8f692fd02a7108a490d7921cc53b9 (patch)
treee54342b341a164b52068565e935f2e44f5c5e85c /chrome/browser/cocoa
parent6b25d6342d294b0e9d53a87c469c2968b8ef338e (diff)
downloadchromium_src-a80edd4bf4e8f692fd02a7108a490d7921cc53b9.zip
chromium_src-a80edd4bf4e8f692fd02a7108a490d7921cc53b9.tar.gz
chromium_src-a80edd4bf4e8f692fd02a7108a490d7921cc53b9.tar.bz2
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
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r--chrome/browser/cocoa/tab_contents_controller.mm6
1 files changed, 1 insertions, 5 deletions
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,