From 458d1aa316cdacac446848c5fd2a8502674eb28f Mon Sep 17 00:00:00 2001 From: Eloston Date: Sat, 25 Apr 2020 21:15:50 +0000 Subject: [PATCH] Attempt to fix drag-and-drop The code in this fix was broken in ece31ff29d411890e2fe0609c0c5f347ef5e9e60 See #923 --- .../fix-building-without-safebrowsing.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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