Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4878)

Unified Diff: chrome/browser/download/download_extensions.cc

Issue 22761003: Remove PDF-related extensions from the danger list on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Boolean entertainment Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_extensions.cc
diff --git a/chrome/browser/download/download_extensions.cc b/chrome/browser/download/download_extensions.cc
index b8041b588e780288baeb58e0eaed538c56ec74ab..630d296e1e8db9679530f8662c77d2cb0d5ae02a 100644
--- a/chrome/browser/download/download_extensions.cc
+++ b/chrome/browser/download/download_extensions.cc
@@ -66,6 +66,8 @@ static const struct Executables {
{ "class", DANGEROUS },
{ "jar", DANGEROUS },
{ "jnlp", DANGEROUS },
+#endif
+#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
// Relating to PDF.
{ "pdf", ALLOW_ON_USER_GESTURE },
{ "pdfxml", ALLOW_ON_USER_GESTURE },
@@ -77,6 +79,7 @@ static const struct Executables {
// Relating to scripting languages.
{ "pl", ALLOW_ON_USER_GESTURE },
{ "py", ALLOW_ON_USER_GESTURE },
+ { "pyc", ALLOW_ON_USER_GESTURE },
{ "pyw", ALLOW_ON_USER_GESTURE },
{ "rb", ALLOW_ON_USER_GESTURE },
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698