| Index: ash/wm/window_util.cc
|
| diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
|
| index 3adb2968049eadccb5da5e65493634e3691b9d19..7c551e00d5e22c972ce30c3bac50c3741e0d0932 100644
|
| --- a/ash/wm/window_util.cc
|
| +++ b/ash/wm/window_util.cc
|
| @@ -86,7 +86,8 @@ bool CanResizeWindow(const aura::Window* window) {
|
|
|
| bool CanSnapWindow(aura::Window* window) {
|
| // If a window has a maximum size defined, snapping may make it too big.
|
| - return window->delegate()->GetMaximumSize().IsEmpty();
|
| + return window->delegate() ? window->delegate()->GetMaximumSize().IsEmpty() :
|
| + true;
|
| }
|
|
|
| bool IsWindowNormal(const aura::Window* window) {
|
|
|