-
Notifications
You must be signed in to change notification settings - Fork 884
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a76d0f
commit f36fd25
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
chromium_src/chrome/browser/download/download_target_determiner.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Copyright (c) 2023 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
|
||
// Prompting the user for download location shouldn't be a factor in determining | ||
// the download's danger level. | ||
#define BRAVE_DOWNLOAD_TARGET_DETERMINER_GET_DANGER_LEVEL \ | ||
true) {} \ | ||
if ( | ||
|
||
#include "src/chrome/browser/download/download_target_determiner.cc" | ||
#undef BRAVE_DOWNLOAD_TARGET_DETERMINER_GET_DANGER_LEVEL |
12 changes: 12 additions & 0 deletions
12
patches/chrome-browser-download-download_target_determiner.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/browser/download/download_target_determiner.cc | ||
index 6e2ece915f5b00068b804607d24a0eb39bce8ffd..19a3ed5111d24613941f5c5505694cedabe42884 100644 | ||
--- a/chrome/browser/download/download_target_determiner.cc | ||
+++ b/chrome/browser/download/download_target_determiner.cc | ||
@@ -1253,6 +1253,7 @@ DownloadFileType::DangerLevel DownloadTargetDeterminer::GetDangerLevel( | ||
// contains malware. | ||
if (HasPromptedForPath() || | ||
confirmation_reason_ != DownloadConfirmationReason::NONE || | ||
+ BRAVE_DOWNLOAD_TARGET_DETERMINER_GET_DANGER_LEVEL | ||
!download_->GetForcedFilePath().empty()) | ||
return DownloadFileType::NOT_DANGEROUS; | ||
|