blob: 30f4f2af0b27157706ed1b85daecb428b60d1661 [file] [log] [blame]
From 4cfad906d7cd21bd99bb00e999f0f23e786ed0c9 Mon Sep 17 00:00:00 2001
From: fgei <fgei@gmail.com>
Date: Fri, 20 Aug 2021 16:13:42 +0000
Subject: [PATCH] remove unwanted account and services section
---
.../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 bd097737d5a34..cd202add8cba2 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
@@ -217,6 +217,8 @@ public class MainSettings extends PreferenceFragmentCompat
}
getPreferenceScreen().removePreference(findPreference(PREF_SAFETY_CHECK));
+ getPreferenceScreen().removePreference(findPreference(PREF_ACCOUNT_AND_GOOGLE_SERVICES_SECTION));
+ getPreferenceScreen().removePreference(findPreference(PREF_GOOGLE_SERVICES));
new AdaptiveToolbarStatePredictor(null).recomputeUiState(uiState -> {
// We don't show the toolbar shortcut settings page if disabled from finch.