Commit d8db9d47 authored by Jinsuk Kim's avatar Jinsuk Kim Committed by Commit Bot

Android: Fix omnibox control bug

https://goo.gl/AgkxzN caused a bug of omnibox not disappearing when
a new page is opened from NTP. The change missed setting control bar
height in such case. This CL fixes it by removing the check for
native page which is not necessary.

Bug: 837791
Change-Id: I84a9e5324280d6ca161bb8f99c51fb93baa0ca80
Reviewed-on: https://chromium-review.googlesource.com/1034051Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555616}
parent 2a70762d
......@@ -923,7 +923,7 @@ public class CompositorViewHolder extends FrameLayout
onPhysicalBackingSizeChanged(
webContents, mCompositorView.getWidth(), mCompositorView.getHeight());
}
if (tab.isNativePage() || tab.getView() == null) return;
if (tab.getView() == null) return;
tab.setTopControlsHeight(getTopControlsHeightPixels(), controlsResizeView());
tab.setBottomControlsHeight(getBottomControlsHeightPixels());
}
......
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