| Index: chrome/browser/download/download_extensions.cc
|
| diff --git a/chrome/browser/download/download_extensions.cc b/chrome/browser/download/download_extensions.cc
|
| index 630d296e1e8db9679530f8662c77d2cb0d5ae02a..6a1d0e7de60874c80739e865856baff9183e7d34 100644
|
| --- a/chrome/browser/download/download_extensions.cc
|
| +++ b/chrome/browser/download/download_extensions.cc
|
| @@ -179,9 +179,6 @@ static const struct Executables {
|
| { "shs", ALLOW_ON_USER_GESTURE },
|
| { "sys", DANGEROUS },
|
| { "url", ALLOW_ON_USER_GESTURE },
|
| - // TODO(davidben): Remove this when double-extensions are no longer
|
| - // a nuisance.
|
| - { "user.js", ALLOW_ON_USER_GESTURE },
|
| { "vb", ALLOW_ON_USER_GESTURE },
|
| { "vbe", ALLOW_ON_USER_GESTURE },
|
| { "vbs", ALLOW_ON_USER_GESTURE },
|
| @@ -224,7 +221,7 @@ static const struct Executables {
|
| };
|
|
|
| DownloadDangerLevel GetFileDangerLevel(const base::FilePath& path) {
|
| - base::FilePath::StringType extension(path.Extension());
|
| + base::FilePath::StringType extension(path.FinalExtension());
|
| if (extension.empty())
|
| return NOT_DANGEROUS;
|
| if (!IsStringASCII(extension))
|
|
|