Index: ui/views/bubble/bubble_delegate.cc |
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc |
index f593a1b23e21fe762c086a2ce229c8f447b0181f..684593791a936e214d0df738014dd684edea1f0e 100644 |
--- a/ui/views/bubble/bubble_delegate.cc |
+++ b/ui/views/bubble/bubble_delegate.cc |
@@ -163,6 +163,14 @@ View* BubbleDelegateView::GetInitiallyFocusedView() { |
return this; |
} |
+void BubbleDelegateView::WindowClosing() { |
sky
2012/04/24 19:41:44
Make position match header.
sadrul
2012/04/24 19:47:54
Done.
|
+ if (anchor_widget_) { |
+ anchor_widget_->RemoveObserver(this); |
+ anchor_widget_ = NULL; |
+ anchor_view_ = NULL; |
+ } |
+} |
+ |
BubbleDelegateView* BubbleDelegateView::AsBubbleDelegate() { |
return this; |
} |