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

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

Issue 113920: Dangerous download dialog for linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: mac uses DownloadManager? Created 11 years, 7 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.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 17020)
+++ chrome/browser/download/download_exe.cc (working copy)
@@ -55,6 +55,7 @@
* ***** END LICENSE BLOCK ***** */
static const char* const g_executables[] = {
+#if defined(OS_WIN)
"ad",
"ade",
"adp",
@@ -136,7 +137,15 @@
"wsh",
"xht",
"xhtm",
- "xhtml"
+ "xhtml",
+#elif defined(OS_LINUX)
+ // TODO(estade): lengthen this list.
+ "exe",
+ "pl",
+ "py",
+ "rb",
+ "sh",
+#endif // defined(OS_LINUX)
};
void InitializeExeTypes(std::set<std::string>* exe_extensions) {
« no previous file with comments | « no previous file | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698