From 69c048fcbcfe20ba2a6f81e0d05b53ee0faf4df3 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Wed, 20 Mar 2024 17:32:15 +0100 Subject: [PATCH] #876 Disable Paint Preview by default --- build/cromite_patches_list.txt | 1 + .../Disable-Paint-Preview-by-default.patch | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 build/patches/Disable-Paint-Preview-by-default.patch diff --git a/build/cromite_patches_list.txt b/build/cromite_patches_list.txt index 76515b43..e0e79aac 100644 --- a/build/cromite_patches_list.txt +++ b/build/cromite_patches_list.txt @@ -283,6 +283,7 @@ Disable-offline-autofetch-flag.patch Enable-percent-based-scrolling-on-Windows.patch Show-NTP-at-startup.patch Enable-platform-aac-audio-and-h264-video.patch +Disable-Paint-Preview-by-default.patch Temp-PerformanceNavigationTiming-privacy-fix.patch Temp-disable-predictive-back-gesture.patch diff --git a/build/patches/Disable-Paint-Preview-by-default.patch b/build/patches/Disable-Paint-Preview-by-default.patch new file mode 100644 index 00000000..09ff2f05 --- /dev/null +++ b/build/patches/Disable-Paint-Preview-by-default.patch @@ -0,0 +1,22 @@ +From: uazo +Date: Wed, 20 Mar 2024 16:26:23 +0000 +Subject: Disable Paint Preview by default + +License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html +--- + .../chrome/browser/paint_preview/StartupPaintPreviewHelper.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java +--- a/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java ++++ b/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java +@@ -112,7 +112,7 @@ public class StartupPaintPreviewHelper { + * feature is not enabled this is effectively a no-op. + */ + public static void setShouldShowOnRestore(boolean shouldShowOnRestore) { +- sShouldShowOnRestore = shouldShowOnRestore; ++ sShouldShowOnRestore = false; + } + + /** Attempts to display the Paint Preview representation for the given Tab. */ +--