| Index: chrome/browser/ui/window_sizer.cc
|
| diff --git a/chrome/browser/ui/window_sizer.cc b/chrome/browser/ui/window_sizer.cc
|
| index 0f7ed40413e475ef203aceebeb4b0199526a559d..1c9726870e9895406c756912b4c63fdae1aaf919 100644
|
| --- a/chrome/browser/ui/window_sizer.cc
|
| +++ b/chrome/browser/ui/window_sizer.cc
|
| @@ -12,6 +12,7 @@
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| #include "chrome/common/pref_names.h"
|
| +#include "ui/gfx/monitor.h"
|
| #include "ui/gfx/screen.h"
|
|
|
| // Minimum height of the visible part of a window.
|
| @@ -23,14 +24,14 @@ class DefaultMonitorInfoProvider : public MonitorInfoProvider {
|
| public:
|
| // Overridden from MonitorInfoProvider:
|
| virtual gfx::Rect GetPrimaryMonitorWorkArea() const OVERRIDE {
|
| - return gfx::Screen::GetPrimaryMonitorWorkArea();
|
| + return gfx::Screen::GetPrimaryMonitor()->GetWorkArea();
|
| }
|
| virtual gfx::Rect GetPrimaryMonitorBounds() const OVERRIDE {
|
| - return gfx::Screen::GetPrimaryMonitorBounds();
|
| + return gfx::Screen::GetPrimaryMonitor()->GetBounds();
|
| }
|
| virtual gfx::Rect GetMonitorWorkAreaMatching(
|
| const gfx::Rect& match_rect) const OVERRIDE {
|
| - return gfx::Screen::GetMonitorWorkAreaMatching(match_rect);
|
| + return gfx::Screen::GetMonitorMatching(match_rect)->GetBounds();
|
| }
|
| };
|
|
|
|
|