Skip to content

Commit

Permalink
#876 Disable Paint Preview by default
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Mar 20, 2024
1 parent aa3c3ad commit 69c048f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/cromite_patches_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions build/patches/Disable-Paint-Preview-by-default.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From: uazo <uazo@users.noreply.github.com>
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. */
--

0 comments on commit 69c048f

Please sign in to comment.