diff --git a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch b/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch index 89ad18b3..464c8a41 100644 --- a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch +++ b/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch @@ -355,7 +355,7 @@ DCHECK(safe_browsing_request_); --- a/chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc +++ b/chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc -@@ -37,35 +37,4 @@ void HandleOnPerformDrop( +@@ -37,35 +37,8 @@ void HandleOnPerformDrop( content::WebContents* web_contents, const content::DropData& drop_data, content::WebContentsViewDelegate::DropCompletionCallback callback) { @@ -390,6 +390,10 @@ - web_contents, std::move(data), - base::BindOnce(&DeepScanCompletionCallback, std::move(callback)), - safe_browsing::DeepScanAccessPoint::DRAG_AND_DROP); ++ // In original code, this ran safe_browsing::DeepScanningDialogDelegate ++ // Instead, run the code under "if (!safe_browsing::DeepScanningDialogDelegate::IsEnabled(...)) ..." ++ std::move(callback).Run( ++ content::WebContentsViewDelegate::DropCompletionResult::kContinue); } --- a/chrome/browser/ui/views/download/download_item_view.cc +++ b/chrome/browser/ui/views/download/download_item_view.cc