| Index: ui/base/win/hwnd_util.cc
|
| diff --git a/ui/base/win/hwnd_util.cc b/ui/base/win/hwnd_util.cc
|
| index 87295453b13c72c5822880b51337ac05b4033f15..60efa0c45fefbfb3b552844969404e289f238d31 100644
|
| --- a/ui/base/win/hwnd_util.cc
|
| +++ b/ui/base/win/hwnd_util.cc
|
| @@ -26,7 +26,7 @@ void AdjustWindowToFit(HWND hwnd, const RECT& bounds, bool fit_to_monitor) {
|
| gfx::Rect window_rect(bounds);
|
| gfx::Rect monitor_rect(mi.rcWork);
|
| gfx::Rect new_window_rect = window_rect.AdjustToFit(monitor_rect);
|
| - if (!new_window_rect.Equals(window_rect)) {
|
| + if (new_window_rect != window_rect) {
|
| // Window doesn't fit on monitor, move and possibly resize.
|
| SetWindowPos(hwnd, 0, new_window_rect.x(), new_window_rect.y(),
|
| new_window_rect.width(), new_window_rect.height(),
|
|
|