Browse Source

Remove the safebrowsing internal page

Blaise 2 months ago
parent
commit
7276a98a85

+ 21 - 0
patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch

@@ -2273,6 +2273,17 @@
  }
  
  std::unique_ptr<RenderViewContextMenuBase>
+--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
++++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+@@ -506,8 +506,6 @@ WebUIFactoryFunction GetWebUIFactoryFunc
+     return &NewWebUI<PasswordManagerInternalsUI>;
+   if (url.host_piece() == chrome::kChromeUIPredictorsHost)
+     return &NewWebUI<PredictorsUI>;
+-  if (url.host_piece() == safe_browsing::kChromeUISafeBrowsingHost)
+-    return &NewWebUI<safe_browsing::SafeBrowsingUI>;
+   if (url.host_piece() == chrome::kChromeUISegmentationInternalsHost)
+     return &NewWebUI<SegmentationInternalsUI>;
+   if (url.host_piece() == chrome::kChromeUISignInInternalsHost)
 --- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
 +++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
 @@ -202,55 +202,6 @@ void DownloadsDOMHandler::SaveDangerousR
@@ -2491,6 +2502,16 @@
  
    OnSafeBrowsingResultReceived(title, text, share_url, std::move(files),
                                 std::move(callback),
+--- a/chrome/common/webui_url_constants.cc
++++ b/chrome/common/webui_url_constants.cc
+@@ -723,7 +723,6 @@ const char* const kChromeHostURLs[] = {
+     kChromeUISuggestInternalsHost,
+ #endif
+     kChromeUINTPTilesInternalsHost,
+-    safe_browsing::kChromeUISafeBrowsingHost,
+     kChromeUISyncInternalsHost,
+ #if !BUILDFLAG(IS_ANDROID)
+     kChromeUITabSearchHost,
 --- a/chrome/test/BUILD.gn
 +++ b/chrome/test/BUILD.gn
 @@ -1884,8 +1884,6 @@ if (!is_android) {

+ 1 - 1
patches/extra/ungoogled-chromium/first-run-page.patch

@@ -18,7 +18,7 @@
  #include "chrome/browser/ui/webui/usb_internals/usb_internals_ui.h"
  #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
  #include "chrome/browser/ui/webui/version/version_ui.h"
-@@ -867,6 +868,8 @@ WebUIFactoryFunction GetWebUIFactoryFunc
+@@ -865,6 +866,8 @@ WebUIFactoryFunction GetWebUIFactoryFunc
      return &NewWebUI<PrivacySandboxDialogUI>;
  #endif  // !BUILDFLAG(IS_ANDROID)