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

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

Issue 3899002: Modified the file extension filters for downloads to add some extensions to a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_exe.cc
===================================================================
--- chrome/browser/download/download_exe.cc (revision 61969)
+++ chrome/browser/download/download_exe.cc (working copy)
@@ -57,6 +57,24 @@
* ***** END LICENSE BLOCK ***** */
static const char* const g_executables[] = {
+ "class",
+ "htm",
+ "html",
+ "jar",
+ "pdf",
+ "pl",
+ "py",
+ "rb",
+ "shtm",
+ "shtml",
+ "svg",
+ "swf",
+ "xht",
+ "xhtm",
+ "xhtml",
+ "xml",
+ "xsl",
+ "xslt",
#if defined(OS_WIN)
"ad",
"ade",
@@ -77,13 +95,10 @@
"fxp",
"hlp",
"hta",
- "htm",
- "html",
"htt",
"inf",
"ins",
"isp",
- "jar",
"js",
"jse",
"lnk",
@@ -126,9 +141,6 @@
"sct",
"shb",
"shs",
- "shtm",
- "shtml",
- "svg",
"url",
"vb",
"vbe",
@@ -143,14 +155,9 @@
"wsf",
"wsh",
"xbap",
- "xht",
- "xhtm",
- "xhtml",
- "xml",
- "xsl",
- "xslt",
#elif defined(OS_MACOSX)
// TODO(thakis): Figure out what makes sense here -- crbug.com/19096
+ "app",
"dmg",
#elif defined(OS_POSIX)
// TODO(estade): lengthen this list.
@@ -159,9 +166,6 @@
"deb",
"exe",
"ksh",
- "pl",
- "py",
- "rb",
"rpm",
"sh",
"tcsh",
« no previous file with comments | « no previous file | chrome/browser/download/download_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698