summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/browser_bubble_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/browser_bubble_win.cc')
-rw-r--r--chrome/browser/views/browser_bubble_win.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/views/browser_bubble_win.cc b/chrome/browser/views/browser_bubble_win.cc
index 3a5bca1..4c085ee 100644
--- a/chrome/browser/views/browser_bubble_win.cc
+++ b/chrome/browser/views/browser_bubble_win.cc
@@ -46,8 +46,13 @@ public:
void OnActivate(UINT action, BOOL minimized, HWND window) {
BrowserBubble::Delegate* delegate = bubble_->delegate();
- if (!delegate)
+ if (!delegate) {
+ if (action == WA_INACTIVE && !closed_) {
+ bubble_->DetachFromBrowser();
+ delete bubble_;
+ }
return;
+ }
if (action == WA_INACTIVE && !closed_) {
delegate->BubbleLostFocus(bubble_);