[Instant Start] Show page-info icon in omnibox.
In LocationBarLayout#onFinishNativeInitialization, LocationBarPhone#setShowIconsWhenUrlFocused() is called to update the |mFirstVisibleFocusedView| from UrlBar to StatusView. This means the LocationBarPhone doesn't populate extra fade animation in populateFadeAnimations(). However, when Instant Start is enabled, the ToolbarPhone#triggerUrlFocusAnimation() will populate the URL focusing animation before the LocationBarPhone is initialized. Thus, unnecessary animation is created and results in the missing of page info icon. To fix it, ToolbarPhone#triggerUrlFocusAnimation() will early exit before native initialization. Bug: 1137973 Change-Id: I5ce8031df2d0d618495e34cf8badc779e5d639dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521199 Commit-Queue: Xi Han <hanxi@chromium.org> Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#825419}
Showing
Please register or sign in to comment