Commit de0711ea authored by Robert Ogden's avatar Robert Ogden Committed by Commit Bot

Do not show the lite chip during a pending navigation

See bug for more context.

Bug: 903895
Change-Id: I86c029059a2896084f36af46df56a70a91620838
Reviewed-on: https://chromium-review.googlesource.com/c/1330202Reviewed-by: default avatarDoug Arnett <dougarnett@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607295}
parent 7f7e3821
...@@ -36,6 +36,11 @@ jboolean PreviewsAndroidBridge::ShouldShowPreviewUI( ...@@ -36,6 +36,11 @@ jboolean PreviewsAndroidBridge::ShouldShowPreviewUI(
if (!web_contents) if (!web_contents)
return false; return false;
// Do not show the lite page chip between navigation start and navigation
// finish.
if (web_contents->GetController().GetPendingEntry())
return false;
PreviewsUITabHelper* tab_helper = PreviewsUITabHelper* tab_helper =
PreviewsUITabHelper::FromWebContents(web_contents); PreviewsUITabHelper::FromWebContents(web_contents);
if (!tab_helper) if (!tab_helper)
......
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