Index: chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h |
diff --git a/chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h b/chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h |
index e40388ff865292e95755419be6657c043227288d..f4340177b968ff709326ac5d981aef56d7833e67 100644 |
--- a/chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h |
+++ b/chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h |
@@ -21,6 +21,7 @@ class Profile; |
namespace extension_action_context_menu { |
class DevmodeObserver; |
+class ProfileObserverBridge; |
} // namespace extension_action_context_menu |
@@ -41,6 +42,10 @@ class DevmodeObserver; |
// The observer used to listen for pref changed notifications. |
scoped_ptr<extension_action_context_menu::DevmodeObserver> observer_; |
+ |
+ // The observer used to reset |observer_| when the profile is destroyed. |
+ scoped_ptr<extension_action_context_menu::ProfileObserverBridge> |
+ profile_observer_; |
// Used to load the extension icon asynchronously on the I/O thread then show |
// the uninstall confirmation dialog. |
@@ -55,6 +60,10 @@ class DevmodeObserver; |
// Show or hide the inspector menu item. |
- (void)updateInspectorItem; |
+// Notifies the ExtensionActionContextMenu that the profile is is being |
+// destroyed. |
+- (void)invalidateProfile; |
+ |
@end |
typedef ExtensionActionContextMenu ExtensionActionContextMenuMac; |