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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm

Issue 11644057: Move BrowserAction out of Extension (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_ungoop_extension_action
Patch Set: Created 8 years 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/browser_actions_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
index 97e3a1400a5a480d8cffce177bda7770e12085fe..bb08d09f3680856abb531aa5ab8d4d34c3fa2cff 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
@@ -24,6 +24,7 @@
#import "chrome/browser/ui/cocoa/extensions/extension_popup_controller.h"
#import "chrome/browser/ui/cocoa/image_button_cell.h"
#import "chrome/browser/ui/cocoa/menu_button.h"
+#include "chrome/common/extensions/api/extension_action/browser_action_handler.h"
Yoyo Zhou 2012/12/21 23:50:59 alphabetize
Devlin 2012/12/27 20:36:46 Done.
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_observer.h"
@@ -536,7 +537,7 @@ class ExtensionServiceObserverBridge : public content::NotificationObserver,
}
- (void)removeActionButtonForExtension:(const Extension*)extension {
- if (!extension->browser_action_info())
+ if (!BrowserActionInfo::GetBrowserAction(extension))
return;
NSString* buttonKey = base::SysUTF8ToNSString(extension->id());

Powered by Google App Engine
This is Rietveld 408576698