| Index: chrome/browser/safe_browsing/download_protection_service.cc
|
| diff --git a/chrome/browser/safe_browsing/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection_service.cc
|
| index b95d377b70eb37a7df2835624bac89ffd9066175..256aba66fa20b296964bd1280e4f38256b758fe8 100644
|
| --- a/chrome/browser/safe_browsing/download_protection_service.cc
|
| +++ b/chrome/browser/safe_browsing/download_protection_service.cc
|
| @@ -95,6 +95,7 @@ enum MaliciousExtensionType {
|
| EXTENSION_APK,
|
| EXTENSION_DMG,
|
| EXTENSION_PKG,
|
| + EXTENSION_TORRENT,
|
| EXTENSION_MAX,
|
| };
|
|
|
| @@ -121,6 +122,8 @@ MaliciousExtensionType GetExtensionType(const base::FilePath& f) {
|
| if (f.MatchesExtension(FILE_PATH_LITERAL(".apk"))) return EXTENSION_APK;
|
| if (f.MatchesExtension(FILE_PATH_LITERAL(".dmg"))) return EXTENSION_DMG;
|
| if (f.MatchesExtension(FILE_PATH_LITERAL(".pkg"))) return EXTENSION_PKG;
|
| + if (f.MatchesExtension(FILE_PATH_LITERAL(".torrent")))
|
| + return EXTENSION_TORRENT;
|
| return EXTENSION_OTHER;
|
| }
|
|
|
|
|