Commit a4228a0b authored by Michael Thiessen's avatar Michael Thiessen Committed by Commit Bot

Disable external CCT launches when in NoTouch mode.

Bug: 941690
Change-Id: Ic05861d2d813a4104957e0bd355c9e8dcd20f7ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1596322Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
Reviewed-by: default avatarPavel Shmakov <pshmakov@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657703}
parent ce15f960
...@@ -273,7 +273,8 @@ public class LaunchIntentDispatcher implements IntentHandler.IntentHandlerDelega ...@@ -273,7 +273,8 @@ public class LaunchIntentDispatcher implements IntentHandler.IntentHandlerDelega
public static boolean isCustomTabIntent(Intent intent) { public static boolean isCustomTabIntent(Intent intent) {
if (intent == null) return false; if (intent == null) return false;
if (CustomTabsIntent.shouldAlwaysUseBrowserUI(intent) if (CustomTabsIntent.shouldAlwaysUseBrowserUI(intent)
|| !intent.hasExtra(CustomTabsIntent.EXTRA_SESSION)) { || !intent.hasExtra(CustomTabsIntent.EXTRA_SESSION)
|| FeatureUtilities.isNoTouchModeEnabled()) {
return false; return false;
} }
return IntentHandler.getUrlFromIntent(intent) != null; return IntentHandler.getUrlFromIntent(intent) != null;
......
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