Index: chrome/browser/ui/panels/panel_browsertest.cc |
diff --git a/chrome/browser/ui/panels/panel_browsertest.cc b/chrome/browser/ui/panels/panel_browsertest.cc |
index c8b4dc359bced3020609529467df1a214f5fca87..f19767fd7e48f0cf9e413b99ebd55e7efef8dde3 100644 |
--- a/chrome/browser/ui/panels/panel_browsertest.cc |
+++ b/chrome/browser/ui/panels/panel_browsertest.cc |
@@ -44,6 +44,7 @@ |
#include "content/test/net/url_request_mock_http_job.h" |
#include "net/base/net_util.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "ui/gfx/monitor.h" |
#include "ui/gfx/screen.h" |
using content::BrowserThread; |
@@ -1640,7 +1641,7 @@ class PanelAndNotificationTest : public PanelBrowserTest { |
// 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::GetPrimaryMonitorSize(); |
+ gfx::Size screen_size = gfx::Screen::GetPrimaryMonitor()->GetSize(); |
return screen_size.height() - balloon->GetPosition().y(); |
#else |
return balloon->GetPosition().y() + balloon->GetViewSize().height(); |