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

Android: TabTestUtil.setIsShowingErrorPage

Moved the method from clank/javatests/../TabUtils.java. This CL needs
landing before the clank side change happens to keep the build green.
https://crrev.com/i/2788136

TBR=tedchoc@chromium.org

Bug: 995903
Change-Id: I43df78505c99ee60d3fb11df44a25a7e6e02c776
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2111812Reviewed-by: default avatarJinsuk Kim <jinsukkim@chromium.org>
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751944}
parent 545d4bcb
...@@ -134,4 +134,14 @@ public class TabTestUtils { ...@@ -134,4 +134,14 @@ public class TabTestUtils {
public static TabWebContentsDelegateAndroid getTabWebContentsDelegate(Tab tab) { public static TabWebContentsDelegateAndroid getTabWebContentsDelegate(Tab tab) {
return ((TabImpl) tab).getTabWebContentsDelegateAndroid(); return ((TabImpl) tab).getTabWebContentsDelegateAndroid();
} }
/**
* Sets whether the tab is showing an error page. This is reset whenever the tab finishes a
* navigation.
* @param tab {@link Tab} object.
* @param isShowingErrorPage Whether the tab shows an error page.
*/
public static void setIsShowingErrorPage(Tab tab, boolean isShowingErrorPage) {
((TabImpl) tab).setIsShowingErrorPage(isShowingErrorPage);
}
} }
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