| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/android/path_utils.h" | 5 #include "base/android/path_utils.h" |
| 6 | 6 |
| 7 #include "base/android/context_utils.h" | |
| 8 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 9 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 10 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 12 | 11 |
| 13 #include "jni/PathUtils_jni.h" | 12 #include "jni/PathUtils_jni.h" |
| 14 | 13 |
| 15 namespace base { | 14 namespace base { |
| 16 namespace android { | 15 namespace android { |
| 17 | 16 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 JNIEnv* env = AttachCurrentThread(); | 77 JNIEnv* env = AttachCurrentThread(); |
| 79 ScopedJavaLocalRef<jstring> path = | 78 ScopedJavaLocalRef<jstring> path = |
| 80 Java_PathUtils_getExternalStorageDirectory(env); | 79 Java_PathUtils_getExternalStorageDirectory(env); |
| 81 FilePath storage_path(ConvertJavaStringToUTF8(path)); | 80 FilePath storage_path(ConvertJavaStringToUTF8(path)); |
| 82 *result = storage_path; | 81 *result = storage_path; |
| 83 return true; | 82 return true; |
| 84 } | 83 } |
| 85 | 84 |
| 86 } // namespace android | 85 } // namespace android |
| 87 } // namespace base | 86 } // namespace base |
| OLD | NEW |