summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_extensions.cc
diff options
context:
space:
mode:
authorcevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-08 22:13:56 +0000
committercevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-08 22:13:56 +0000
commit2fc93852ac1eb778132e6e38ad1332391c0fd844 (patch)
tree5b204aba08e6b1679b5672596d1bdeaab37fc5ff /chrome/browser/download/download_extensions.cc
parent79dc42cdd33ac921aa435646ee242845bfa4fb87 (diff)
downloadchromium_src-2fc93852ac1eb778132e6e38ad1332391c0fd844.zip
chromium_src-2fc93852ac1eb778132e6e38ad1332391c0fd844.tar.gz
chromium_src-2fc93852ac1eb778132e6e38ad1332391c0fd844.tar.bz2
Enable "Always Open Files of This Type" even for dangerous file types. The
advanced user knows what they were doing, and dangerous file types will still go through the warning dialog depending on user gesture level. BUG=65895 TEST=download_manager_unittest.cc Review URL: http://codereview.chromium.org/6196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_extensions.cc')
-rw-r--r--chrome/browser/download/download_extensions.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/download/download_extensions.cc b/chrome/browser/download/download_extensions.cc
index 52aa565..b9cac1b 100644
--- a/chrome/browser/download/download_extensions.cc
+++ b/chrome/browser/download/download_extensions.cc
@@ -213,10 +213,6 @@ DownloadDangerLevel GetFileExtensionDangerLevel(
return NotDangerous;
}
-bool IsFileExtensionSafe(const FilePath::StringType& extension) {
- return GetFileExtensionDangerLevel(extension) == NotDangerous;
-}
-
bool IsFileSafe(const FilePath& path) {
return GetFileDangerLevel(path) == NotDangerous;
}