Commit e01d4c5d authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

[VK] Remove outdated comment in OnWindowBoundsChanged.

This comment is outdated: this is no longer true for other container
behaviours.

TBR=blakeo@chromium.org

Change-Id: I8cd3bce943f4e177d41ad404eb7fb737a0dd397f
Reviewed-on: https://chromium-review.googlesource.com/1113713Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570344}
parent b8a125c7
......@@ -531,11 +531,7 @@ void KeyboardController::OnWindowBoundsChanged(
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds,
ui::PropertyChangeReason reason) {
if (!window->IsRootWindow())
return;
// Keep the same height when window resizes. It gets called when the screen
// rotates.
if (!ui_->HasContentsWindow())
if (!window->IsRootWindow() || !ui_->HasContentsWindow())
return;
container_behavior_->SetCanonicalBounds(GetContentsWindow(), new_bounds);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment