diff options
Diffstat (limited to 'chrome/browser/download/download_exe.cc')
-rw-r--r-- | chrome/browser/download/download_exe.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/download/download_exe.cc b/chrome/browser/download/download_exe.cc index 01585f5..4e12022 100644 --- a/chrome/browser/download/download_exe.cc +++ b/chrome/browser/download/download_exe.cc @@ -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 @@ static const char* const g_executables[] = { #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 |