Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5111)

Unified Diff: chrome/browser/download/download_manager.cc

Issue 6324020: Tweak the auto-open algorithm to permit JNLP to auto-open iff the user has... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/download/download_util.h » ('j') | chrome/browser/download/download_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/download/download_util.h » ('j') | chrome/browser/download/download_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698