Skip to content

Commit

Permalink
Merge pull request #21760 from brave/download-danger-override-35561
Browse files Browse the repository at this point in the history
Override all danger levels with download flag
  • Loading branch information
fmarier authored Jan 26, 2024
2 parents 6169510 + 2fe00d6 commit 105a6aa
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
true) {} \
if (

#define BRAVE_DOWNLOAD_TARGET_DETERMINER_GET_DANGER_LEVEL2 \
if (danger_level == DownloadFileType::ALLOW_ON_USER_GESTURE) { \
if (base::FeatureList::IsEnabled( \
features::kBraveOverrideDownloadDangerLevel)) { \
return DownloadFileType::NOT_DANGEROUS; \
} \
#define BRAVE_DOWNLOAD_TARGET_DETERMINER_GET_DANGER_LEVEL2 \
if (base::FeatureList::IsEnabled( \
features::kBraveOverrideDownloadDangerLevel)) { \
return DownloadFileType::NOT_DANGEROUS; \
}

#include "src/chrome/browser/download/download_target_determiner.cc"
Expand Down

0 comments on commit 105a6aa

Please sign in to comment.