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 |