Commit 1e252fbf authored by Jinsuk Kim's avatar Jinsuk Kim Committed by Commit Bot

Android: Private-package Tab.setIsShowingErroPage

The method is called by a class in chrome.browser.tab package
in production code. Makes it a private-package method.

Bug: 995903
Change-Id: I5f8b73200ae4a3c966b140a44e63cfc991f9b249
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872079Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708466}
parent 3a592dbe
......@@ -467,7 +467,7 @@ public class Tab {
*
* @param isShowingErrorPage Whether the tab shows an error page.
*/
public void setIsShowingErrorPage(boolean isShowingErrorPage) {
void setIsShowingErrorPage(boolean isShowingErrorPage) {
mIsShowingErrorPage = isShowingErrorPage;
}
......
......@@ -111,4 +111,14 @@ public class TabTestUtils {
Tab tab, WebContents webContents, boolean didStartLoad, boolean didFinishLoad) {
tab.swapWebContents(webContents, didStartLoad, didFinishLoad);
}
/**
* 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 void setIsShowingErrorPage(Tab tab, boolean isShowingErrorPage) {
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