mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 11:27:32 -03:00
fix exclusive if
This commit is contained in:
parent
f1ea4c1042
commit
8a6a661859
1 changed files with 5 additions and 1 deletions
|
@ -1706,8 +1706,12 @@ bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferredForFile(
|
|||
bool ChromeDownloadManagerDelegate::ShouldBlockFile(
|
||||
download::DownloadItem* item,
|
||||
download::DownloadDangerType danger_type) const {
|
||||
// Don't block downloads if flag is set
|
||||
if (base::CommandLine::ForCurrentProcess()->HasSwitch("allow-insecure-downloads")) {
|
||||
return false;
|
||||
}
|
||||
// Chrome-initiated background downloads should not be blocked.
|
||||
if (item && !item->RequireSafetyChecks() || base::CommandLine::ForCurrentProcess()->HasSwitch("allow-insecure-downloads")) {
|
||||
if (item && !item->RequireSafetyChecks()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue