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

Unified Diff: chrome/browser/android/download/chrome_download_delegate.cc

Issue 2609113004: Fix a crash when downloading a dangerous download (Closed)
Patch Set: Created 3 years, 12 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
Index: chrome/browser/android/download/chrome_download_delegate.cc
diff --git a/chrome/browser/android/download/chrome_download_delegate.cc b/chrome/browser/android/download/chrome_download_delegate.cc
index a9eb13fa5170ae101eb1a00c5d72c10d263ad0d4..0bbb836258f2882e1ec7e7617f519efb0f87a156 100644
--- a/chrome/browser/android/download/chrome_download_delegate.cc
+++ b/chrome/browser/android/download/chrome_download_delegate.cc
@@ -42,15 +42,6 @@ static ScopedJavaLocalRef<jstring> GetDownloadWarningText(
base::android::ConvertJavaStringToUTF16(env, filename)));
}
-// Returns true if a file name is dangerous, or false otherwise.
-static jboolean IsDownloadDangerous(JNIEnv* env,
- const JavaParamRef<jclass>& clazz,
- const JavaParamRef<jstring>& filename) {
- base::FilePath path(base::android::ConvertJavaStringToUTF8(env, filename));
- return safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel(
- path) != safe_browsing::DownloadFileType::NOT_DANGEROUS;
-}
-
// static
bool ChromeDownloadDelegate::EnqueueDownloadManagerRequest(
jobject chrome_download_delegate,

Powered by Google App Engine
This is Rietveld 408576698