Index: ui/message_center/views/toast_contents_view.cc |
diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc |
index 1751451fde7995165c8ff46f883fb449467efdd3..690e694156827f658ab2c4a5ae7a4b3be0b4574e 100644 |
--- a/ui/message_center/views/toast_contents_view.cc |
+++ b/ui/message_center/views/toast_contents_view.cc |
@@ -172,16 +172,16 @@ void ToastContentsView::OnBoundsAnimationEndedOrCancelled( |
const gfx::Animation* animation) { |
if (is_closing_ && closing_animation_ == animation && GetWidget()) { |
views::Widget* widget = GetWidget(); |
-#if defined(USE_AURA) |
+ |
// TODO(dewittj): This is a workaround to prevent a nasty bug where |
// closing a transparent widget doesn't actually remove the window, |
// causing entire areas of the screen to become unresponsive to clicks. |
// See crbug.com/243469 |
widget->Hide(); |
-# if defined(OS_WIN) |
+#if defined(OS_WIN) |
widget->SetOpacity(0xFF); |
-# endif |
#endif |
+ |
widget->Close(); |
} |