From 2463b91b1b318bfdbc669aaf757baa2417ba1091 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Mon, 13 Jun 2011 21:11:37 +0000 Subject: Disables tooltips if we can't create the tooltip window. I still don't understand why we can't create tooltips for some folks, but this should at least keep us from crashing. BUG=82193 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/6995157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88897 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/native_widget_win.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/widget/native_widget_win.h') diff --git a/views/widget/native_widget_win.h b/views/widget/native_widget_win.h index 94bf6e2..524fd84 100644 --- a/views/widget/native_widget_win.h +++ b/views/widget/native_widget_win.h @@ -461,7 +461,8 @@ class NativeWidgetWin : public ui::WindowImpl, focus_on_creation_ = focus_on_creation; } - // The TooltipManager. + // The TooltipManager. This is NULL if there is a problem creating the + // underlying tooltip window. // WARNING: RootView's destructor calls into the TooltipManager. As such, this // must be destroyed AFTER root_view_. scoped_ptr tooltip_manager_; -- cgit v1.1