Index: chrome/browser/gtk/tabs/tab_strip_gtk.cc |
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc |
index 3af798a48de70685561fb6714222361baa88db2f..20d5c38f17f8d2782d217cd43c8215a8a3f6ad68 100644 |
--- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc |
+++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc |
@@ -850,8 +850,10 @@ gfx::Point TabStripGtk::GetTabStripOriginForWidget(GtkWidget* target) { |
-widget()->allocation.x, 0, &x, &y)) { |
// If the tab strip isn't showing, give the coordinates relative to the |
// toplevel instead. |
- gtk_widget_translate_coordinates( |
- gtk_widget_get_toplevel(widget()), target, 0, 0, &x, &y); |
+ if (!gtk_widget_translate_coordinates( |
+ gtk_widget_get_toplevel(widget()), target, 0, 0, &x, &y)) { |
+ NOTREACHED(); |
+ } |
} |
if (GTK_WIDGET_NO_WINDOW(target)) { |
x += target->allocation.x; |