Commit b6da5d8d authored by John Abd-El-Malek's avatar John Abd-El-Malek Committed by Chromium LUCI CQ

Update Navigation.disableNetworkErrorAutoReload minimum version now that it's merged to M88.

Bug: 1163455
Change-Id: I48a495ef9d0cca362df9518ae952be7e80b14ab7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622892
Auto-Submit: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842266}
parent 2be7ac77
...@@ -38,5 +38,7 @@ interface INavigation { ...@@ -38,5 +38,7 @@ interface INavigation {
boolean isUserDecidingIntentLaunch() = 14; boolean isUserDecidingIntentLaunch() = 14;
boolean isKnownProtocol() = 15; boolean isKnownProtocol() = 15;
boolean isServedFromBackForwardCache() = 16; boolean isServedFromBackForwardCache() = 16;
// @since 88
void disableNetworkErrorAutoReload() = 17; void disableNetworkErrorAutoReload() = 17;
} }
...@@ -64,7 +64,7 @@ public class NavigateParams { ...@@ -64,7 +64,7 @@ public class NavigateParams {
/** /**
* Disables auto-reload for this navigation if the network is down and comes back later. * Disables auto-reload for this navigation if the network is down and comes back later.
* Auto-reload is enabled by default. This is deprecated as of 89, instead use * Auto-reload is enabled by default. This is deprecated as of 88, instead use
* {@link Navigation#disableNetworkErrorAutoReload} which works for both embedder-initiated * {@link Navigation#disableNetworkErrorAutoReload} which works for both embedder-initiated
* navigations and also user-initiated navigations (such as back or forward). Auto-reload * navigations and also user-initiated navigations (such as back or forward). Auto-reload
* is disabled if either method is called. * is disabled if either method is called.
......
...@@ -261,12 +261,12 @@ public class Navigation extends IClientNavigation.Stub { ...@@ -261,12 +261,12 @@ public class Navigation extends IClientNavigation.Stub {
* *
* @throws IllegalStateException If not called during start. * @throws IllegalStateException If not called during start.
* *
* @since 89 * @since 88
*/ */
public void disableNetworkErrorAutoReload() { public void disableNetworkErrorAutoReload() {
ThreadCheck.ensureOnUiThread(); ThreadCheck.ensureOnUiThread();
if (WebLayer.shouldPerformVersionChecks() if (WebLayer.shouldPerformVersionChecks()
&& WebLayer.getSupportedMajorVersionInternal() < 89) { && WebLayer.getSupportedMajorVersionInternal() < 88) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
try { try {
......
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