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

Unified Diff: base/android/path_utils.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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/android/path_utils_unittest.cc » ('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
deleted file mode 100644
index caad53a36f6a6ea3b284f68b28f976a47067d900..0000000000000000000000000000000000000000
--- a/base/android/path_utils.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/android/path_utils.h"
-
-#include "base/android/jni_android.h"
-#include "base/android/jni_string.h"
-#include "base/android/scoped_java_ref.h"
-#include "base/files/file_path.h"
-
-#include "jni/PathUtils_jni.h"
-
-namespace base {
-namespace android {
-
-bool GetDataDirectory(FilePath* result) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> path =
- Java_PathUtils_getDataDirectory(env, GetApplicationContext());
- FilePath data_path(ConvertJavaStringToUTF8(path));
- *result = data_path;
- return true;
-}
-
-bool GetDatabaseDirectory(FilePath* result) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> path =
- Java_PathUtils_getDatabaseDirectory(env, GetApplicationContext());
- FilePath data_path(ConvertJavaStringToUTF8(path));
- *result = data_path;
- return true;
-}
-
-bool GetCacheDirectory(FilePath* result) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> path =
- Java_PathUtils_getCacheDirectory(env, GetApplicationContext());
- FilePath cache_path(ConvertJavaStringToUTF8(path));
- *result = cache_path;
- return true;
-}
-
-bool GetThumbnailCacheDirectory(FilePath* result) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> path =
- Java_PathUtils_getThumbnailCacheDirectoryPath(env,
- GetApplicationContext());
- FilePath thumbnail_cache_path(ConvertJavaStringToUTF8(path));
- *result = thumbnail_cache_path;
- return true;
-}
-
-bool GetDownloadsDirectory(FilePath* result) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> path =
- Java_PathUtils_getDownloadsDirectory(env, GetApplicationContext());
- FilePath downloads_path(ConvertJavaStringToUTF8(path));
- *result = downloads_path;
- return true;
-}
-
-bool GetNativeLibraryDirectory(FilePath* result) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> path =
- Java_PathUtils_getNativeLibraryDirectory(env, GetApplicationContext());
- FilePath library_path(ConvertJavaStringToUTF8(path));
- *result = library_path;
- return true;
-}
-
-bool GetExternalStorageDirectory(FilePath* result) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> path =
- Java_PathUtils_getExternalStorageDirectory(env);
- FilePath storage_path(ConvertJavaStringToUTF8(path));
- *result = storage_path;
- return true;
-}
-
-bool RegisterPathUtils(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-} // namespace android
-} // namespace base
« no previous file with comments | « base/android/path_utils.h ('k') | base/android/path_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698