Commit 0667b455 authored by spdonghao's avatar spdonghao Committed by Commit Bot

Add isInOverviewAndShowingOmnibox check in LocationBarDataProvider#isLoading.

Bug: 1148813
Change-Id: Ia4ec5c44f8e00d2af18f5a161f3bfe1c84a1d9f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2537115
Commit-Queue: Hao Dong <spdonghao@chromium.org>
Reviewed-by: default avatarXi Han <hanxi@chromium.org>
Reviewed-by: default avatarPatrick Noland <pnoland@chromium.org>
Reviewed-by: default avatarFilip Gorski <fgorski@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827878}
parent 99113344
......@@ -52,6 +52,7 @@ public interface LocationBarDataProvider {
/** Returns whether the currently active page is loading. */
default boolean isLoading() {
if (isInOverviewAndShowingOmnibox()) return false;
Tab tab = getTab();
return tab != null && tab.isLoading();
}
......
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