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

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

Issue 12388035: Don't crash when quitting while an extension popup is open. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -hax Created 7 years, 10 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
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/extension_action_context_menu_browsertest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm b/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
index cd7ad10e3221493210b4b1c78dce081f0d389823..239d3ac19199420bda4bfead1c08cae60d676e3a 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
@@ -201,6 +201,7 @@ class DevtoolsNotificationBridge : public content::NotificationObserver {
gPopup = nil;
if (host_->view())
host_->view()->set_container(NULL);
+ host_.reset();
}
- (void)windowDidResignKey:(NSNotification*)notification {
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/extension_action_context_menu_browsertest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698