From 99f2d6468c7a18b710be3c016b37e008ff61cadb Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 30 Mar 2022 20:23:40 +0800 Subject: [PATCH] base: Remove JNI function on Android --- src/base/files/file_util_android.cc | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/base/files/file_util_android.cc b/src/base/files/file_util_android.cc index fa09a5782e..d2ba684201 100644 --- a/src/base/files/file_util_android.cc +++ b/src/base/files/file_util_android.cc @@ -4,30 +4,10 @@ #include "base/files/file_util.h" -#include "base/android/jni_android.h" -#include "base/android/jni_string.h" -#include "base/base_jni/FileUtils_jni.h" #include "base/files/file_path.h" #include "base/path_service.h" -using base::android::JavaParamRef; -using base::android::JavaRef; -using base::android::ScopedJavaLocalRef; - namespace base { -namespace android { - -static ScopedJavaLocalRef JNI_FileUtils_GetAbsoluteFilePath( - JNIEnv* env, - const JavaParamRef& j_file_path) { - base::FilePath file_path( - base::android::ConvertJavaStringToUTF8(env, j_file_path)); - base::FilePath absolute_file_path = MakeAbsoluteFilePath(file_path); - return base::android::ConvertUTF8ToJavaString(env, - absolute_file_path.value()); -} - -} // namespace android bool GetShmemTempDir(bool executable, base::FilePath* path) { return PathService::Get(base::DIR_CACHE, path);