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

Unified Diff: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h

Issue 12208091: ExtensionInfobarGtk doesn't handle delegate going away. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 10 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 | chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h
diff --git a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h
index a916d81f5dd75042a03995ff0786e5ce3f2cd99f..fb302f04f4c037f3f2443c6ef465a7239a1812c8 100644
--- a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h
+++ b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h
@@ -18,7 +18,8 @@ class ExtensionViewGtk;
class MenuGtk;
class ExtensionInfoBarGtk : public InfoBarGtk,
- public MenuGtk::Delegate {
+ public MenuGtk::Delegate,
+ public ExtensionInfoBarDelegate::DelegateObserver {
public:
ExtensionInfoBarGtk(InfoBarService* owner,
ExtensionInfoBarDelegate* delegate);
@@ -36,6 +37,9 @@ class ExtensionInfoBarGtk : public InfoBarGtk,
// Overridden from MenuGtk::Delegate:
virtual void StoppedShowing() OVERRIDE;
+ // Overridden from ExtensionInfoBarDelegate::DelegateObserver:
+ virtual void OnDelegateDeleted() OVERRIDE;
+
private:
// Build the widgets of the Infobar.
void BuildWidgets();
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698