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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h

Issue 5915004: Introduce incognito preference settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed whitespaces in mac files Created 9 years, 11 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
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..9af03e107c7bd707be06e5aa75522bea5fddfe7d 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
@@ -42,6 +43,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.
scoped_ptr<AsyncUninstaller> uninstaller_;
@@ -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;

Powered by Google App Engine
This is Rietveld 408576698