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

Unified Diff: views/widget/native_widget_aura.cc

Issue 8418028: Destroy tooltip manager if the native window is destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: modified according to comments Created 9 years, 2 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 | « no previous file | views/widget/tooltip_manager_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..af8ab47fe33c9da26501d95da310651f422cfbc3 100644
--- a/views/widget/native_widget_aura.cc
+++ b/views/widget/native_widget_aura.cc
@@ -535,6 +535,9 @@ void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) {
void NativeWidgetAura::OnWindowDestroying() {
delegate_->OnNativeWidgetDestroying();
+
+ // If the aura::Window is destroyed, we can no longer show tooltips.
+ tooltip_manager_.reset();
}
void NativeWidgetAura::OnWindowDestroyed() {
« no previous file with comments | « no previous file | views/widget/tooltip_manager_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698