blob: 21e8e821e6f32a1ea9300b4df8facb3413c920f4 [file] [log] [blame]
From 0000000000000000000000000000000000000000 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 69fdd58bebbbf..33fce11a4818c 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
@@ -224,6 +224,8 @@ public class MainSettings extends ChromeBaseSettingsFragment
}
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.