Index: base/android/path_utils.cc |
diff --git a/base/android/path_utils.cc b/base/android/path_utils.cc |
index 5737227f38f71c9471d324e262fb08a5ce902100..c98007cf8b4c3621ce575d623f607b3bf1f66f9a 100644 |
--- a/base/android/path_utils.cc |
+++ b/base/android/path_utils.cc |
@@ -23,6 +23,15 @@ bool GetDataDirectory(FilePath* result) { |
return true; |
} |
+bool GetDatabaseDirectory(FilePath* result) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jstring> path = |
+ Java_PathUtils_getDatabaseDirectory(env, GetApplicationContext()); |
+ FilePath data_path(ConvertJavaStringToUTF8(path)); |
+ *result = data_path; |
+ return true; |
+} |
+ |
bool GetCacheDirectory(FilePath* result) { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jstring> path = |