Index: base/android/path_utils.cc |
diff --git a/base/android/path_utils.cc b/base/android/path_utils.cc |
index c98007cf8b4c3621ce575d623f607b3bf1f66f9a..caad53a36f6a6ea3b284f68b28f976a47067d900 100644 |
--- a/base/android/path_utils.cc |
+++ b/base/android/path_utils.cc |
@@ -41,6 +41,16 @@ bool GetCacheDirectory(FilePath* result) { |
return true; |
} |
+bool GetThumbnailCacheDirectory(FilePath* result) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jstring> path = |
+ Java_PathUtils_getThumbnailCacheDirectoryPath(env, |
+ GetApplicationContext()); |
+ FilePath thumbnail_cache_path(ConvertJavaStringToUTF8(path)); |
+ *result = thumbnail_cache_path; |
+ return true; |
+} |
+ |
bool GetDownloadsDirectory(FilePath* result) { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jstring> path = |