Bläddra i källkod

Attempt to fix drag-and-drop

The code in this fix was broken in ece31ff29d411890e2fe0609c0c5f347ef5e9e60

See #923
Eloston 4 år sedan
förälder
incheckning
458d1aa316

+ 5 - 1
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