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

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

Issue 351029: Support dragging a virtual file out of the browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 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 | « chrome/browser/dom_ui/downloads_dom_handler.h ('k') | chrome/browser/download/download_file.h » ('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 35459)
+++ chrome/browser/download/download_exe.cc (working copy)
@@ -8,6 +8,7 @@
#include "chrome/browser/download/download_util.h"
#include "base/logging.h"
+#include "base/string_util.h"
namespace download_util {
@@ -158,10 +159,12 @@
#endif
};
-void InitializeExeTypes(std::set<std::string>* exe_extensions) {
- DCHECK(exe_extensions);
- for (size_t i = 0; i < arraysize(g_executables); ++i)
- exe_extensions->insert(g_executables[i]);
+bool IsExecutableExtension(const std::string& extension) {
+ for (size_t i = 0; i < arraysize(g_executables); ++i) {
+ if (LowerCaseEqualsASCII(extension, g_executables[i]))
+ return true;
+ }
+ return false;
}
} // namespace download_util
« no previous file with comments | « chrome/browser/dom_ui/downloads_dom_handler.h ('k') | chrome/browser/download/download_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698