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

Update minimum version for desktop user agent API after it was merged to M88.

Bug: 1147533
Change-Id: If7d3cf96c9f101663e6fdb960378565639b88121
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2558959
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@{#832154}
parent 31b371cd
...@@ -777,7 +777,7 @@ public class NavigationTest { ...@@ -777,7 +777,7 @@ public class NavigationTest {
@Test @Test
@SmallTest @SmallTest
@MinWebLayerVersion(89) @MinWebLayerVersion(88)
public void testCantUsePerNavigationAndDesktopMode() throws Exception { public void testCantUsePerNavigationAndDesktopMode() throws Exception {
TestWebServer testServer = TestWebServer.start(); TestWebServer testServer = TestWebServer.start();
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(null); InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(null);
...@@ -791,7 +791,7 @@ public class NavigationTest { ...@@ -791,7 +791,7 @@ public class NavigationTest {
@Test @Test
@SmallTest @SmallTest
@MinWebLayerVersion(89) @MinWebLayerVersion(88)
public void testDesktopMode() throws Exception { public void testDesktopMode() throws Exception {
TestWebServer testServer = TestWebServer.start(); TestWebServer testServer = TestWebServer.start();
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl("about:blank"); InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl("about:blank");
...@@ -804,7 +804,7 @@ public class NavigationTest { ...@@ -804,7 +804,7 @@ public class NavigationTest {
@Test @Test
@SmallTest @SmallTest
@MinWebLayerVersion(89) @MinWebLayerVersion(88)
public void testDesktopModeSticks() throws Exception { public void testDesktopModeSticks() throws Exception {
TestWebServer testServer = TestWebServer.start(); TestWebServer testServer = TestWebServer.start();
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl("about:blank"); InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl("about:blank");
...@@ -819,7 +819,7 @@ public class NavigationTest { ...@@ -819,7 +819,7 @@ public class NavigationTest {
@Test @Test
@SmallTest @SmallTest
@MinWebLayerVersion(89) @MinWebLayerVersion(88)
public void testDesktopModeGetter() throws Exception { public void testDesktopModeGetter() throws Exception {
TestWebServer testServer = TestWebServer.start(); TestWebServer testServer = TestWebServer.start();
InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(null); InstrumentationActivity activity = mActivityTestRule.launchShellWithUrl(null);
......
...@@ -79,8 +79,6 @@ interface ITab { ...@@ -79,8 +79,6 @@ interface ITab {
// Added in 88 // Added in 88
void setFloatingActionModeOverride(in int actionModeItemTypes) = 27; void setFloatingActionModeOverride(in int actionModeItemTypes) = 27;
boolean willAutomaticallyReloadAfterCrash() = 28; boolean willAutomaticallyReloadAfterCrash() = 28;
// Added in 89
void setDesktopUserAgentEnabled(in boolean enable) = 29; void setDesktopUserAgentEnabled(in boolean enable) = 29;
boolean isDesktopUserAgentEnabled() = 30; boolean isDesktopUserAgentEnabled() = 30;
} }
...@@ -796,10 +796,10 @@ public class Tab { ...@@ -796,10 +796,10 @@ public class Tab {
* back/forward navigations. The tab will be reloaded with the new user agent. * back/forward navigations. The tab will be reloaded with the new user agent.
* @param enable if true requests desktop site, otherwise mobile site. * @param enable if true requests desktop site, otherwise mobile site.
* *
* @since 89 * @since 88
*/ */
public void setDesktopUserAgentEnabled(boolean enable) { public void setDesktopUserAgentEnabled(boolean enable) {
if (WebLayer.getSupportedMajorVersionInternal() < 89) { if (WebLayer.getSupportedMajorVersionInternal() < 88) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
try { try {
...@@ -812,10 +812,10 @@ public class Tab { ...@@ -812,10 +812,10 @@ public class Tab {
/** /**
* Returns true if the currently loaded page used a desktop user agent. * Returns true if the currently loaded page used a desktop user agent.
* *
* @since 89 * @since 88
*/ */
public boolean isDesktopUserAgentEnabled() { public boolean isDesktopUserAgentEnabled() {
if (WebLayer.getSupportedMajorVersionInternal() < 89) { if (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