From c647d3d363a117406822bbe0e677218071a6bf7c 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 ca068ca9ed..b8b3b3720f 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_headers/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);