blob: 603dcd09cf765f019f9c518d1fbae142f29ee6e2 [file] [log] [blame]
From 5a9a0498b8e3b7cfc3a7008181dea0373a599346 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Tue, 25 May 2021 16:43:39 -0400
Subject: [PATCH] remove safety check menu
---
.../src/org/chromium/chrome/browser/settings/MainSettings.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java b/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java
index c72bed9714299..bd097737d5a34 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java
@@ -216,6 +216,8 @@ public class MainSettings extends PreferenceFragmentCompat
TemplateUrlServiceFactory.get().load();
}
+ getPreferenceScreen().removePreference(findPreference(PREF_SAFETY_CHECK));
+
new AdaptiveToolbarStatePredictor(null).recomputeUiState(uiState -> {
// We don't show the toolbar shortcut settings page if disabled from finch.
if (uiState.canShowUi) return;