| Index: chrome/browser/ui/panels/panel_and_desktop_notification_browsertest.cc
|
| diff --git a/chrome/browser/ui/panels/panel_and_desktop_notification_browsertest.cc b/chrome/browser/ui/panels/panel_and_desktop_notification_browsertest.cc
|
| index 3cf1377ba1180f744011cd78b73f4c298b25e546..7db8886d5c2396e6cf78da3c409a97b46b42f49d 100644
|
| --- a/chrome/browser/ui/panels/panel_and_desktop_notification_browsertest.cc
|
| +++ b/chrome/browser/ui/panels/panel_and_desktop_notification_browsertest.cc
|
| @@ -83,7 +83,8 @@ class PanelAndDesktopNotificationTest : public BasePanelBrowserTest {
|
| // The position returned by the notification balloon is based on Mac's
|
| // vertically inverted orientation. We need to flip it so that it can
|
| // be compared against the position returned by the panel.
|
| - gfx::Size screen_size = gfx::Screen::GetPrimaryDisplay().size();
|
| + gfx::Size screen_size =
|
| + gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().size();
|
| return screen_size.height() - balloon->GetPosition().y();
|
| #else
|
| return balloon->GetPosition().y() + balloon->GetViewSize().height();
|
|
|