From: csagan5 <32685696+csagan5@users.noreply.github.com>
Date: Sun, 6 Mar 2022 17:39:15 +0100
Subject: Disable safety check

License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
 chrome/android/BUILD.gn                                   | 5 -----
 chrome/android/chrome_java_sources.gni                    | 1 -
 .../browser/app/omnibox/OmniboxPedalDelegateImpl.java     | 8 --------
 chrome/browser/BUILD.gn                                   | 1 -
 4 files changed, 15 deletions(-)

diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
--- a/chrome/android/BUILD.gn
+++ b/chrome/android/BUILD.gn
@@ -442,7 +442,6 @@ if (current_toolchain == default_toolchain) {
       "//chrome/browser/privacy_sandbox/android:java",
       "//chrome/browser/profiles/android:java",
       "//chrome/browser/safe_browsing/android:java",
-      "//chrome/browser/safety_check/android:java",
       "//chrome/browser/search_engines/android:java",
       "//chrome/browser/search_resumption:java",
       "//chrome/browser/segmentation_platform:factory_java",
@@ -1032,8 +1031,6 @@ if (current_toolchain == default_toolchain) {
       "//chrome/browser/privacy_guide/android:java",
       "//chrome/browser/privacy_guide/android:junit",
       "//chrome/browser/profiles/android:java",
-      "//chrome/browser/safety_check/android:java",
-      "//chrome/browser/safety_check/android:junit",
       "//chrome/browser/search_engines/android:java",
       "//chrome/browser/search_resumption:junit",
       "//chrome/browser/segmentation_platform:factory_java",
@@ -1556,8 +1553,6 @@ if (current_toolchain == default_toolchain) {
       "//chrome/browser/profiles/android:java",
       "//chrome/browser/safe_browsing/android:java",
       "//chrome/browser/safe_browsing/android:javatests",
-      "//chrome/browser/safety_check/android:java",
-      "//chrome/browser/safety_check/android:javatests",
       "//chrome/browser/search_engines/android:java",
       "//chrome/browser/selection/android:javatests",
       "//chrome/browser/settings:java",
diff --git a/chrome/android/chrome_java_sources.gni b/chrome/android/chrome_java_sources.gni
--- a/chrome/android/chrome_java_sources.gni
+++ b/chrome/android/chrome_java_sources.gni
@@ -946,7 +946,6 @@ chrome_java_sources = [
   "java/src/org/chromium/chrome/browser/safe_browsing/SafeBrowsingPasswordReuseDialogBridge.java",
   "java/src/org/chromium/chrome/browser/safe_browsing/SafeBrowsingReferringAppBridge.java",
   "java/src/org/chromium/chrome/browser/safe_browsing/SafeBrowsingSettingsLauncher.java",
-  "java/src/org/chromium/chrome/browser/safety_check/SafetyCheckUpdatesDelegateImpl.java",
   "java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java",
   "java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java",
   "java/src/org/chromium/chrome/browser/searchwidget/SearchBoxDataProvider.java",
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/app/omnibox/OmniboxPedalDelegateImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/app/omnibox/OmniboxPedalDelegateImpl.java
--- a/chrome/android/java/src/org/chromium/chrome/browser/app/omnibox/OmniboxPedalDelegateImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/app/omnibox/OmniboxPedalDelegateImpl.java
@@ -33,7 +33,6 @@ import org.chromium.chrome.browser.omnibox.suggestions.SuggestionsMetrics;
 import org.chromium.chrome.browser.omnibox.suggestions.pedal.PedalSuggestionViewProperties.PedalIcon;
 import org.chromium.chrome.browser.password_manager.ManagePasswordsReferrer;
 import org.chromium.chrome.browser.password_manager.PasswordManagerLauncher;
-import org.chromium.chrome.browser.safety_check.SafetyCheckSettingsFragment;
 import org.chromium.chrome.browser.settings.SettingsLauncherImpl;
 import org.chromium.components.browser_ui.accessibility.AccessibilitySettings;
 import org.chromium.components.browser_ui.settings.SettingsLauncher;
@@ -96,12 +95,6 @@ public class OmniboxPedalDelegateImpl implements OmniboxPedalDelegate {
                     startActivity(intent);
                 }
                 break;
-            case OmniboxPedalType.RUN_CHROME_SAFETY_CHECK:
-                settingsLauncher.launchSettingsActivity(mActivity,
-                        SafetyCheckSettingsFragment.class,
-                        SafetyCheckSettingsFragment.createBundle(
-                                /*runSafetyCheckImmediately=*/true));
-                break;
             case OmniboxPedalType.MANAGE_SITE_SETTINGS:
                 settingsLauncher.launchSettingsActivity(mActivity, SiteSettings.class);
                 break;
@@ -198,7 +191,6 @@ public class OmniboxPedalDelegateImpl implements OmniboxPedalDelegate {
             case OmniboxPedalType.MANAGE_PASSWORDS:
             case OmniboxPedalType.UPDATE_CREDIT_CARD:
             case OmniboxPedalType.LAUNCH_INCOGNITO:
-            case OmniboxPedalType.RUN_CHROME_SAFETY_CHECK:
             case OmniboxPedalType.MANAGE_SITE_SETTINGS:
             case OmniboxPedalType.MANAGE_CHROME_SETTINGS:
             case OmniboxPedalType.VIEW_CHROME_HISTORY:
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -3346,7 +3346,6 @@ static_library("browser") {
       "//chrome/browser/privacy_sandbox/android:jni_headers",
       "//chrome/browser/reading_list/android",
       "//chrome/browser/safe_browsing/android:safe_browsing_enums",
-      "//chrome/browser/safety_check/android",
       "//chrome/browser/search_resumption:jni_headers",
       "//chrome/browser/share/android:jni_headers",
       "//chrome/browser/share/core/crow:crow_configuration",
--
2.25.1
