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

Unified Diff: base/android/path_utils.cc

Issue 2811173002: Setup download internal directory (Closed)
Patch Set: fix browser test Created 3 years, 8 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 | « base/android/path_utils.h ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « base/android/path_utils.h ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698