From fb6e03c97920e719e567ebb3f1bfbf3a581542c0 Mon Sep 17 00:00:00 2001 From: Artem Samoilenko Date: Thu, 21 Nov 2024 16:18:51 -0500 Subject: [PATCH] fixup! [Android] New javasript optimizer privacy setting Chromium change: https://chromium.googlesource.com/chromium/src/+/726b6623ef36168b805cafe6dfb48b2d51bc4ff6 Add toggle for v8 optimization for Android in settings This CL adds a "v8 optimization" entry to - The "Site settings" page - The "Privacy and Security" page This matches settings in desktop Chrome BUG=378076277 Change-Id: I90b41398fccd6bd758519ce97b16182734e3e8a3 --- .../chrome/browser/privacy/settings/BravePrivacySettings.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/java/org/chromium/chrome/browser/privacy/settings/BravePrivacySettings.java b/android/java/org/chromium/chrome/browser/privacy/settings/BravePrivacySettings.java index 80363d488fd7..c85d1ace3bdb 100644 --- a/android/java/org/chromium/chrome/browser/privacy/settings/BravePrivacySettings.java +++ b/android/java/org/chromium/chrome/browser/privacy/settings/BravePrivacySettings.java @@ -64,6 +64,7 @@ public class BravePrivacySettings extends PrivacySettings implements ConnectionE private static final String PREF_THIRD_PARTY_COOKIES = "third_party_cookies"; private static final String PREF_SECURITY_SECTION = "security_section"; private static final String PREF_PRIVACY_GUIDE = "privacy_guide"; + private static final String PREF_JAVASCRIPT_OPTIMIZER = "javascript_optimizer"; // brave Prefs private static final String PREF_BRAVE_SHIELDS_GLOBALS_SECTION = @@ -142,6 +143,7 @@ public class BravePrivacySettings extends PrivacySettings implements ConnectionE PREF_SNS, PREF_REQUEST_OTR, PREF_SECURE_DNS, + PREF_JAVASCRIPT_OPTIMIZER, PREF_BLOCK_COOKIE_CONSENT_NOTICES, PREF_BLOCK_SWITCH_TO_APP_NOTICES, PREF_DO_NOT_TRACK,