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

Unified Diff: chrome/browser/gtk/browser_toolbar_gtk.cc

Issue 345002: In ~BrowserToolbarGtk, remove notifications we added in the ctor.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_toolbar_gtk.cc
===================================================================
--- chrome/browser/gtk/browser_toolbar_gtk.cc (revision 30237)
+++ chrome/browser/gtk/browser_toolbar_gtk.cc (working copy)
@@ -93,6 +93,12 @@
}
BrowserToolbarGtk::~BrowserToolbarGtk() {
+ browser_->command_updater()->RemoveCommandObserver(IDC_BACK, this);
+ browser_->command_updater()->RemoveCommandObserver(IDC_FORWARD, this);
+ browser_->command_updater()->RemoveCommandObserver(IDC_RELOAD, this);
+ browser_->command_updater()->RemoveCommandObserver(IDC_HOME, this);
+ browser_->command_updater()->RemoveCommandObserver(IDC_BOOKMARK_PAGE, this);
+
offscreen_entry_.Destroy();
// When we created our MenuGtk objects, we pass them a pointer to our accel
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698