Chromium Code Reviews| Index: ui/aura/mus/window_tree_client.cc |
| diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc |
| index 03c333e8f365cbe8eb568f28ca76010030177651..bf2fef0791783e69e475b13ce3720b2588a02af4 100644 |
| --- a/ui/aura/mus/window_tree_client.cc |
| +++ b/ui/aura/mus/window_tree_client.cc |
| @@ -1302,22 +1302,15 @@ void WindowTreeClient::WmSetBounds(uint32_t change_id, |
| Id window_id, |
| const gfx::Rect& transit_bounds) { |
| WindowMus* window = GetWindowByServerId(window_id); |
| - bool result = false; |
| if (window) { |
| DCHECK(window_manager_delegate_); |
| - gfx::Rect bounds = transit_bounds; |
| // TODO: this needs to trigger scheduling a bounds change on |window|. |
| - result = |
| - window_manager_delegate_->OnWmSetBounds(window->GetWindow(), &bounds); |
| - if (result) { |
| - // If the resulting bounds differ return false. Returning false ensures |
| - // the client applies the bounds we set below. |
| - result = bounds == transit_bounds; |
| - window->SetBoundsFromServer(bounds); |
| - } |
| + window_manager_delegate_->OnWmSetBounds(window->GetWindow(), |
| + transit_bounds); |
| + window->SetBoundsFromServer(transit_bounds); |
|
mfomitchev
2016/12/07 20:59:46
Ditto - remove
thanhph
2016/12/08 00:20:29
Done.
|
| } |
| if (window_manager_internal_client_) |
|
mfomitchev
2016/12/07 20:59:46
A comment similar to what you have in the Mus WTC
thanhph
2016/12/08 00:20:29
Done.
|
| - window_manager_internal_client_->WmResponse(change_id, result); |
| + window_manager_internal_client_->WmResponse(change_id, false); |
| } |
| void WindowTreeClient::WmSetProperty( |