Index: base/android/path_utils.cc |
diff --git a/base/android/path_utils.cc b/base/android/path_utils.cc |
index 89ab8333ab1a71de5c72fd1405fbe53df3775272..c4aa4198a834ada793cb2badfd9e12e75b896777 100644 |
--- a/base/android/path_utils.cc |
+++ b/base/android/path_utils.cc |
@@ -48,6 +48,15 @@ bool GetThumbnailCacheDirectory(FilePath* result) { |
return true; |
} |
+bool GetDownloadInternalDirectory(FilePath* result) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jstring> path = |
+ Java_PathUtils_getDownloadInternalDirectory(env); |
+ FilePath download_internal_path(ConvertJavaStringToUTF8(path)); |
+ *result = download_internal_path; |
+ return true; |
+} |
+ |
bool GetDownloadsDirectory(FilePath* result) { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jstring> path = Java_PathUtils_getDownloadsDirectory(env); |