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

Unified Diff: base/android/path_utils.cc

Issue 10663039: Add Java function to retrieve the native library dir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
Index: base/android/path_utils.cc
diff --git a/base/android/path_utils.cc b/base/android/path_utils.cc
index c46e6693aaff9590e2d5422c56589ca8fcbd9ef2..cf5542af681eddd5b0673301be35c95474729e17 100644
--- a/base/android/path_utils.cc
+++ b/base/android/path_utils.cc
@@ -34,6 +34,13 @@ std::string GetDownloadsDirectory() {
return ConvertJavaStringToUTF8(path);
}
+std::string GetNativeLibraryDirectory() {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jstring> path =
+ Java_PathUtils_getNativeLibraryDirectory(env, GetApplicationContext());
+ return ConvertJavaStringToUTF8(path);
+}
+
bool RegisterPathUtils(JNIEnv* env) {
return RegisterNativesImpl(env);
}

Powered by Google App Engine
This is Rietveld 408576698