LeOSium_webview/mulch/patches/0001-Vanadium/0038-disable-unused-safe-br...

27 lines
1.4 KiB
Diff
Raw Normal View History

2023-11-18 11:46:19 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Thu, 12 Mar 2020 13:01:02 -0400
Subject: [PATCH] disable unused safe browsing option by default
Safe Browsing is currently a no-op due to the lack of Play Services, and
support for using the local database backend hasn't been implemented.
Various changes would be needed to make it available and to make sure
that privacy is preserved.
---
components/safe_browsing/core/common/safe_browsing_prefs.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/safe_browsing/core/common/safe_browsing_prefs.cc b/components/safe_browsing/core/common/safe_browsing_prefs.cc
index bed8cfa6d9e83..5c98faabf265b 100644
--- a/components/safe_browsing/core/common/safe_browsing_prefs.cc
+++ b/components/safe_browsing/core/common/safe_browsing_prefs.cc
@@ -277,7 +277,7 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry) {
registry->RegisterTimePref(
prefs::kSafeBrowsingEsbProtegoPingWithoutTokenLastLogTime, base::Time());
registry->RegisterBooleanPref(
- prefs::kSafeBrowsingEnabled, true,
+ prefs::kSafeBrowsingEnabled, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterBooleanPref(prefs::kSafeBrowsingEnhanced, false);
registry->RegisterBooleanPref(prefs::kSafeBrowsingProceedAnywayDisabled,