Commit b6b96a60 authored by Evan Stade's avatar Evan Stade Committed by Commit Bot

WebLayer: Update client version check for Tab#willAutomaticallyReload

The functionality made it to the stable branch of 87.

Bug: 1146058
Change-Id: Ib52dfccd62f2874237a6464b414130aebbc77887
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2545868
Commit-Queue: Evan Stade <estade@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828591}
parent 47cbe1d5
...@@ -52,7 +52,7 @@ public class TabPrivateTest { ...@@ -52,7 +52,7 @@ public class TabPrivateTest {
@Test @Test
@SmallTest @SmallTest
@MinWebLayerVersion(88) @MinWebLayerVersion(87)
public void testAutoReloadOnBackgroundCrash() throws Exception { public void testAutoReloadOnBackgroundCrash() throws Exception {
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl("about:blank"); InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl("about:blank");
activity.setIgnoreRendererCrashes(); activity.setIgnoreRendererCrashes();
......
...@@ -144,11 +144,13 @@ public class Tab { ...@@ -144,11 +144,13 @@ public class Tab {
* active in its browser or its Fragment is not started. When a tab in this state loses its * active in its browser or its Fragment is not started. When a tab in this state loses its
* renderer process to a crash (or due to system memory reclamation), it will automatically * renderer process to a crash (or due to system memory reclamation), it will automatically
* reload next the time it becomes possibly visible. * reload next the time it becomes possibly visible.
*
* @since 87
*/ */
public boolean willAutomaticallyReloadAfterCrash() { public boolean willAutomaticallyReloadAfterCrash() {
ThreadCheck.ensureOnUiThread(); ThreadCheck.ensureOnUiThread();
throwIfDestroyed(); throwIfDestroyed();
if (WebLayer.getSupportedMajorVersionInternal() < 88) { if (WebLayer.getSupportedMajorVersionInternal() < 87) {
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