Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc |
index b66dc060740afc74d58f6a6c374ef211ee6f83a1..86aa082d6de9a754b3f10a5b9756e1ac77cf0ef5 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc |
@@ -1553,8 +1553,8 @@ class BookmarkBarViewTest17 : public BookmarkBarViewEventTestBase { |
// The context menu and child_menu can be overlapped, calculate the |
// non-intersected Rect of the child menu and click on its center to make |
// sure the click is always on the child menu. |
- gfx::Rect context_rect = context_menu->GetSubmenu()->GetScreenBounds(); |
- gfx::Rect child_menu_rect = child_menu->GetScreenBounds(); |
+ gfx::Rect context_rect = context_menu->GetSubmenu()->GetBoundsInScreen(); |
+ gfx::Rect child_menu_rect = child_menu->GetBoundsInScreen(); |
gfx::Rect clickable_rect = child_menu_rect.Subtract(context_rect); |
ASSERT_FALSE(clickable_rect.IsEmpty()); |
observer_.set_task(CreateEventTask(this, &BookmarkBarViewTest17::Step4)); |