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

Unified Diff: chrome/browser/cocoa/extensions/extension_popup_controller.mm

Issue 508010: [Mac] Fixes a bug where an ExtensionPopupController object's pointer was neve... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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/cocoa/extensions/extension_popup_controller.mm
===================================================================
--- chrome/browser/cocoa/extensions/extension_popup_controller.mm (revision 35091)
+++ chrome/browser/cocoa/extensions/extension_popup_controller.mm (working copy)
@@ -13,6 +13,7 @@
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extension_process_manager.h"
#include "chrome/browser/profile.h"
+#include "chrome/common/notification_service.h"
// The minimum/maximum dimensions of the popup.
// The minimum is just a little larger than the size of the button itself.
@@ -95,7 +96,10 @@
- (void)windowDidResignKey:(NSNotification *)notification {
DCHECK_EQ([notification object], [self window]);
- [self close];
+ NotificationService::current()->Notify(
+ NotificationType::EXTENSION_HOST_VIEW_SHOULD_CLOSE,
+ Source<Profile>(host_->profile()),
+ Details<ExtensionHost>(host_.get()));
}
- (void)close {

Powered by Google App Engine
This is Rietveld 408576698