| Index: ash/wm/maximize_mode/maximize_mode_window_state.cc
|
| diff --git a/ash/wm/maximize_mode/maximize_mode_window_state.cc b/ash/wm/maximize_mode/maximize_mode_window_state.cc
|
| index 9ff0a98f51605af90006902e3d343e2584b884c1..ad9f9952aa60f332d80903455c7b6cdf74b323ff 100644
|
| --- a/ash/wm/maximize_mode/maximize_mode_window_state.cc
|
| +++ b/ash/wm/maximize_mode/maximize_mode_window_state.cc
|
| @@ -156,10 +156,7 @@ void MaximizeModeWindowState::OnWMEvent(wm::WindowState* window_state,
|
| case wm::WM_EVENT_SHOW_INACTIVE:
|
| return;
|
| case wm::WM_EVENT_SET_BOUNDS:
|
| - if (window_state->allow_set_bounds_in_maximized()) {
|
| - window_state->SetBoundsConstrained(
|
| - static_cast<const wm::SetBoundsEvent*>(event)->requested_bounds());
|
| - } else if (current_state_type_ == wm::WINDOW_STATE_TYPE_MAXIMIZED) {
|
| + if (current_state_type_ == wm::WINDOW_STATE_TYPE_MAXIMIZED) {
|
| // Having a maximized window, it could have been created with an empty
|
| // size and the caller should get his size upon leaving the maximized
|
| // mode. As such we set the restore bounds to the requested bounds.
|
|
|