Remove safe browsing help option

This commit is contained in:
Deep
2021-03-09 01:07:48 -05:00
parent 25d3640f72
commit 9e6a7b7a78
7 changed files with 55 additions and 0 deletions
@@ -0,0 +1,22 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.safe_browsing.settings;
import org.chromium.base.BraveReflectionUtil;
import org.chromium.chrome.browser.safe_browsing.SafeBrowsingBridge;
/**
* Fragment containing standard protection settings.
*/
public class BraveStandardProtectionSettingsFragment extends StandardProtectionSettingsFragment {
public void updateLeakDetectionAndExtendedReportingPreferences() {
BraveReflectionUtil.InvokeMethod(StandardProtectionSettingsFragment.class, this,
"updateLeakDetectionAndExtendedReportingPreferences");
SafeBrowsingBridge.setSafeBrowsingExtendedReportingEnabled(false);
getPreferenceScreen().removePreference(mExtendedReportingPreference);
getPreferenceScreen().removePreference(mPasswordLeakDetectionPreference);
}
}