mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Attempt to fix drag-and-drop
The code in this fix was broken in ece31ff29d
See #923
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user