| 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 {
|
|
|