Index: chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc |
diff --git a/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc b/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc |
index 1328b85d1cc2f337a399289698c15a009e1d0ce1..cbf61698792b257225669b85e18350cbcc38c127 100644 |
--- a/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc |
+++ b/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc |
@@ -178,5 +178,7 @@ void ExtensionPopupGtk::DestroyPopupWithoutResult() { |
} |
gfx::Rect ExtensionPopupGtk::GetViewBounds() { |
- return gfx::Rect(host_->view()->native_view()->allocation); |
+ GtkAllocation allocation; |
+ gtk_widget_get_allocation(host_->view()->native_view(), &allocation); |
+ return gfx::Rect(allocation); |
} |