summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/download/download_manager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 04cc6f5..9c548d2 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -121,7 +121,8 @@ static bool IsChromeExtension(const FilePath& path,
return true;
// Otherwise, it is an extension if it has the right, err, extension.
- return path.Extension().substr(1) == chrome::kExtensionFileExtension;
+ return path.Extension().size() > 1 &&
+ path.Extension().substr(1) == chrome::kExtensionFileExtension;
}
// DownloadItem implementation -------------------------------------------------