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

Unified Diff: base/base_paths_android.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/base_paths.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_paths_android.cc
diff --git a/base/base_paths_android.cc b/base/base_paths_android.cc
index 51923d5412dac82ef5b5a9a376493bf8dbcdf105..449b731713cbd157ad39c58da14330de5fa143a7 100644
--- a/base/base_paths_android.cc
+++ b/base/base_paths_android.cc
@@ -60,6 +60,10 @@ bool PathProviderAndroid(int key, FilePath* result) {
*result = file_util::GetHomeDir();
return true;
}
+ case base::DIR_ANDROID_EXTERNAL_STORAGE: {
+ *result = FilePath(base::android::GetExternalStorageDirectory());
+ return true;
+ }
default: {
// Note: the path system expects this function to override the default
// behavior. So no need to log an error if we don't support a given
« no previous file with comments | « base/base_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698