| Index: base/android/path_utils.cc
|
| diff --git a/base/android/path_utils.cc b/base/android/path_utils.cc
|
| index 52fdd8dd61c5ba0e2cf86ed77f2db191f2fbde9f..1e8d1e8308828c74dffb1592a019da5313c2691d 100644
|
| --- a/base/android/path_utils.cc
|
| +++ b/base/android/path_utils.cc
|
| @@ -41,6 +41,13 @@ std::string GetNativeLibraryDirectory() {
|
| return ConvertJavaStringToUTF8(path);
|
| }
|
|
|
| +std::string GetExternalStorageDirectory() {
|
| + JNIEnv* env = AttachCurrentThread();
|
| + ScopedJavaLocalRef<jstring> path =
|
| + Java_PathUtils_getExternalStorageDirectory(env);
|
| + return ConvertJavaStringToUTF8(path);
|
| +}
|
| +
|
| bool RegisterPathUtils(JNIEnv* env) {
|
| return RegisterNativesImpl(env);
|
| }
|
|
|