Index: views/widget/native_widget_aura.cc |
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc |
index 11fcb076f8cf1dc2c295e175dc165dfca9341707..df6a2f964c585a16613cc32ca9b7a4b77a05c511 100644 |
--- a/views/widget/native_widget_aura.cc |
+++ b/views/widget/native_widget_aura.cc |
@@ -535,6 +535,10 @@ void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { |
void NativeWidgetAura::OnWindowDestroying() { |
delegate_->OnNativeWidgetDestroying(); |
+ |
+ // If the aura::Window is destryoed, we can no longer show tooltips. |
sky
2011/10/28 18:26:33
'destryoed' -> destroyed
varunjain
2011/10/28 18:35:16
Done.
|
+ if (tooltip_manager_.get()) |
sky
2011/10/28 18:26:33
Not need to check this, just do reset.
varunjain
2011/10/28 18:35:16
Done.
|
+ tooltip_manager_.reset(); |
} |
void NativeWidgetAura::OnWindowDestroyed() { |