Commit 81ad5630 authored by David Vallet's avatar David Vallet Committed by Commit Bot

Always mark content downloaded by devtools delegate as potentially dangerous

Bug: 805445
Change-Id: I7051f519205e178db57e23320ab979f8fa9ce38b
Reviewed-on: https://chromium-review.googlesource.com/894782
Commit-Queue: David Vallet <dvallet@chromium.org>
Reviewed-by: default avatarPavel Feldman <pfeldman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533215}
parent 7ac3d657
...@@ -177,7 +177,7 @@ void DevToolsDownloadManagerDelegate::OnDownloadPathGenerated( ...@@ -177,7 +177,7 @@ void DevToolsDownloadManagerDelegate::OnDownloadPathGenerated(
callback.Run(suggested_path, callback.Run(suggested_path,
content::DownloadItem::TARGET_DISPOSITION_OVERWRITE, content::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, download::DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT,
suggested_path.AddExtension(FILE_PATH_LITERAL(".crdownload")), suggested_path.AddExtension(FILE_PATH_LITERAL(".crdownload")),
content::DOWNLOAD_INTERRUPT_REASON_NONE); content::DOWNLOAD_INTERRUPT_REASON_NONE);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment