| Index: chrome/browser/ui/window_sizer_gtk.cc
|
| diff --git a/chrome/browser/ui/window_sizer_gtk.cc b/chrome/browser/ui/window_sizer_gtk.cc
|
| index 133fb0ca8528f78e333c69b8494c80f51d556956..1c51d9bd3dc0397d970ec2766d6f7df175e805c4 100644
|
| --- a/chrome/browser/ui/window_sizer_gtk.cc
|
| +++ b/chrome/browser/ui/window_sizer_gtk.cc
|
| @@ -10,6 +10,7 @@
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| +#include "ui/gfx/monitor.h"
|
| #include "ui/gfx/screen.h"
|
|
|
| // Used to pad the default new window size. On Windows, this is also used for
|
| @@ -20,7 +21,7 @@ const int WindowSizer::kWindowTilePixels = 10;
|
|
|
| // static
|
| gfx::Point WindowSizer::GetDefaultPopupOrigin(const gfx::Size& size) {
|
| - gfx::Rect monitor_bounds = gfx::Screen::GetPrimaryMonitorWorkArea();
|
| + gfx::Rect monitor_bounds = gfx::Screen::GetPrimaryMonitor()->GetWorkArea();
|
| gfx::Point corner(monitor_bounds.x(), monitor_bounds.y());
|
| if (Browser* browser = BrowserList::GetLastActive()) {
|
| GtkWindow* window =
|
|
|