Index: chrome/browser/download/download_manager.cc |
=================================================================== |
--- chrome/browser/download/download_manager.cc (revision 72765) |
+++ chrome/browser/download/download_manager.cc (working copy) |
@@ -289,7 +289,8 @@ |
if (!info->prompt_user_for_save_location && |
info->save_info.file_path.empty()) { |
- info->is_dangerous = download_util::IsDangerous(info, profile()); |
+ info->is_dangerous = download_util::IsDangerous( |
+ info, profile(), ShouldOpenFileBasedOnExtension(info->suggested_path)); |
} |
// We need to move over to the download thread because we don't want to stat |