Commit 4c298571 authored by Mehran Mahmoudi's avatar Mehran Mahmoudi Committed by Commit Bot

[Paint Preview] Disable startup experiment when a11y is enabled

Bug: 1103314
Change-Id: I6361a0467afa0ce907c862b174943389090dd06a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288098Reviewed-by: default avatarCalder Kitagawa <ckitagawa@chromium.org>
Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786410}
parent 85cadabe
......@@ -12,6 +12,7 @@ import org.chromium.chrome.browser.paint_preview.services.PaintPreviewTabService
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tabmodel.EmptyTabModelSelectorObserver;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.util.ChromeAccessibilityUtil;
/**
* Handles initialization of the Paint Preview tab observers.
......@@ -62,7 +63,8 @@ public class PaintPreviewHelper {
public static boolean showPaintPreviewOnRestore(
Tab tab, Runnable onShown, Runnable onDismissed) {
if (!CachedFeatureFlags.isEnabled(ChromeFeatureList.PAINT_PREVIEW_SHOW_ON_STARTUP)
|| sHasAttemptedToShowOnRestore) {
|| sHasAttemptedToShowOnRestore
|| ChromeAccessibilityUtil.get().isAccessibilityEnabled()) {
return false;
}
......
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