Chromium Code Reviews| Index: chrome/browser/ui/views/app_list/app_list_controller_win.cc |
| diff --git a/chrome/browser/ui/views/app_list/app_list_controller_win.cc b/chrome/browser/ui/views/app_list/app_list_controller_win.cc |
| index c4b0e51f86f858f2a70e203ceb2f18ad15c2ace0..d7d0422a07fb79afa11434a78890f3636da6acfa 100644 |
| --- a/chrome/browser/ui/views/app_list/app_list_controller_win.cc |
| +++ b/chrome/browser/ui/views/app_list/app_list_controller_win.cc |
| @@ -173,7 +173,8 @@ void UpdateArrowPositionAndAnchorPoint(app_list::AppListView* view) { |
| int min_space_y = preferred.height() + kAnchorOffset + kPadding + kArrowSize; |
| gfx::Point anchor = view->anchor_point(); |
| - gfx::Display display = gfx::Screen::GetDisplayNearestPoint(anchor); |
| + gfx::Display display = gfx::Screen::GetDisplayNearestPoint( |
| + gfx::Screen::BadTwoWorldsContext(), anchor); |
|
oshima
2012/10/04 20:18:26
this can be view->GetWidget()->GetNativeVew() corr
|
| const gfx::Rect& display_rect = display.work_area(); |
| views::BubbleBorder::ArrowLocation arrow; |
| GetArrowLocationAndUpdateAnchor(display.work_area(), |