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

Unified Diff: base/android/path_utils.cc

Issue 10867020: Add DIR_ANDROID_EXTERNAL_STORAGE to base/base_path.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restrict to Android only. Created 8 years, 4 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') | base/base_paths.h » ('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 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);
}
« no previous file with comments | « base/android/path_utils.h ('k') | base/base_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698