| Index: ash/wm/workspace/workspace_window_resizer.cc
|
| diff --git a/ash/wm/workspace/workspace_window_resizer.cc b/ash/wm/workspace/workspace_window_resizer.cc
|
| index 73ba6fb89d02007071fb2eb83be349d88da418cf..bd1ef257747d2e1e568c615c36496843f3c44771 100644
|
| --- a/ash/wm/workspace/workspace_window_resizer.cc
|
| +++ b/ash/wm/workspace/workspace_window_resizer.cc
|
| @@ -941,14 +941,10 @@
|
| edge_cycler_.reset();
|
| return;
|
| }
|
| - if (!edge_cycler_) {
|
| - edge_cycler_.reset(new TwoStepEdgeCycler(
|
| - location, snap_type_ == SNAP_LEFT
|
| - ? TwoStepEdgeCycler::DIRECTION_LEFT
|
| - : TwoStepEdgeCycler::DIRECTION_RIGHT));
|
| - } else {
|
| + if (!edge_cycler_)
|
| + edge_cycler_.reset(new TwoStepEdgeCycler(location));
|
| + else
|
| edge_cycler_->OnMove(location);
|
| - }
|
|
|
| // Update phantom window with snapped or docked guide bounds.
|
| // Windows that cannot be snapped or are less wide than kMaxDockWidth can get
|
|
|