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

Unified Diff: views/view.cc

Issue 6995157: Disables tooltips if we can't create the tooltip window. I still don't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved comments Created 9 years, 6 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 | « ui/base/win/hwnd_util.cc ('k') | views/widget/aero_tooltip_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index d33e80b35158285eed2044221045fd4d0eb94405..86c996ce7d9127166ef0917abef11b6f59d93e9d 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1241,7 +1241,8 @@ void View::Blur() {
void View::TooltipTextChanged() {
Widget* widget = GetWidget();
- if (widget)
+ // TooltipManager may be null if there is a problem creating it.
+ if (widget && widget->native_widget()->GetTooltipManager())
widget->native_widget()->GetTooltipManager()->TooltipTextChanged(this);
}
« no previous file with comments | « ui/base/win/hwnd_util.cc ('k') | views/widget/aero_tooltip_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698