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

Unified Diff: base/android/java/src/org/chromium/base/PathUtils.java

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 | « no previous file | base/android/path_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/PathUtils.java
diff --git a/base/android/java/src/org/chromium/base/PathUtils.java b/base/android/java/src/org/chromium/base/PathUtils.java
index e63bf62d46d233709054a0dfc317a2aac62fba26..c3503a4b6135e7b1ab8202a497d35e9dca4a3d96 100644
--- a/base/android/java/src/org/chromium/base/PathUtils.java
+++ b/base/android/java/src/org/chromium/base/PathUtils.java
@@ -73,4 +73,13 @@ public abstract class PathUtils {
return "/system/lib/";
}
+
+ /**
+ * @return the external storage directory.
+ */
+ @SuppressWarnings("unused")
+ @CalledByNative
+ public static String getExternalStorageDirectory() {
+ return Environment.getExternalStorageDirectory().getAbsolutePath();
+ }
}
« no previous file with comments | « no previous file | base/android/path_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698