Index: chrome/browser/ui/browser_list_gtk.cc |
diff --git a/chrome/browser/ui/browser_list_gtk.cc b/chrome/browser/ui/browser_list_gtk.cc |
index bb01d4df6190a1f60aacd82f165cb011d56b5be1..393434534a3b1f5c27a3aa28fff4ff58e7b8c873 100644 |
--- a/chrome/browser/ui/browser_list_gtk.cc |
+++ b/chrome/browser/ui/browser_list_gtk.cc |
@@ -18,7 +18,7 @@ void BrowserList::AllBrowsersClosedAndAppExiting() { |
// window or the toplevel associated with drop down windows crashes. |
// We further filter to only close dialogs, as blindly closing all windows |
// causes problems with things like status icons. |
- if (GTK_WIDGET_VISIBLE(GTK_WIDGET(window)) && |
+ if (gtk_widget_get_visible(GTK_WIDGET(window)) && |
(GTK_IS_DIALOG(GTK_WIDGET(window)))) |
gtk_widget_destroy(GTK_WIDGET(window)); |
} |