base: Remove JNI function on Android

This commit is contained in:
klzgrad 2022-03-30 20:23:40 +08:00
parent 37e9212ade
commit 16ffb4111e

View File

@ -4,22 +4,10 @@
#include "base/files/file_util.h"
#include "base/android/jni_string.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
// Must come after all headers that specialize FromJniType() / ToJniType().
#include "base/base_jni/FileUtils_jni.h"
namespace base {
namespace android {
static std::string JNI_FileUtils_GetAbsoluteFilePath(JNIEnv* env,
std::string& file_path) {
return MakeAbsoluteFilePath(base::FilePath(file_path)).value();
}
} // namespace android
bool GetShmemTempDir(bool executable, base::FilePath* path) {
return PathService::Get(base::DIR_CACHE, path);