| Index: ash/launcher/overflow_bubble.cc
|
| diff --git a/ash/launcher/overflow_bubble.cc b/ash/launcher/overflow_bubble.cc
|
| index 6489583e3f5a2f3937dcce7991376c85415cd5c2..cf5efaf5df667964c0dfd6c1919b3f9803d97a68 100644
|
| --- a/ash/launcher/overflow_bubble.cc
|
| +++ b/ash/launcher/overflow_bubble.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "ash/launcher/launcher_types.h"
|
| #include "ash/launcher/launcher_view.h"
|
| +#include "ash/shell.h"
|
| #include "ui/gfx/insets.h"
|
| #include "ui/gfx/screen.h"
|
| #include "ui/views/bubble/bubble_delegate.h"
|
| @@ -145,8 +146,9 @@ void OverflowBubbleView::ScrollByYOffset(int y_offset) {
|
| gfx::Size OverflowBubbleView::GetPreferredSize() {
|
| gfx::Size preferred_size = GetContentsSize();
|
|
|
| - const gfx::Rect monitor_rect = gfx::Screen::GetDisplayNearestPoint(
|
| - GetAnchorRect().CenterPoint()).work_area();
|
| + const gfx::Rect monitor_rect =
|
| + ash::Shell::GetAshScreen()->GetDisplayNearestPoint(
|
| + GetAnchorRect().CenterPoint()).work_area();
|
| if (!monitor_rect.IsEmpty()) {
|
| if (is_horizontal_alignment()) {
|
| preferred_size.set_width(std::min(
|
| @@ -215,7 +217,7 @@ gfx::Rect OverflowBubbleView::GetBubbleBounds() {
|
| content_size,
|
| false);
|
|
|
| - gfx::Rect monitor_rect = gfx::Screen::GetDisplayNearestPoint(
|
| + gfx::Rect monitor_rect = ash::Shell::GetAshScreen()->GetDisplayNearestPoint(
|
| anchor_rect.CenterPoint()).work_area();
|
|
|
| int offset = 0;
|
|
|