1 // Copyright 2012 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/files/file_util.h" 6 7 #include "base/android/jni_string.h" 8 #include "base/files/file_path.h" 9 #include "base/path_service.h" 10 11 // Must come after all headers that specialize FromJniType() / ToJniType(). 12 #include "base/base_jni/FileUtils_jni.h" 13 14 namespace base { 15 namespace android { 16 JNI_FileUtils_GetAbsoluteFilePath(JNIEnv * env,std::string & file_path)17static std::string JNI_FileUtils_GetAbsoluteFilePath(JNIEnv* env, 18 std::string& file_path) { 19 return MakeAbsoluteFilePath(base::FilePath(file_path)).value(); 20 } 21 22 } // namespace android 23 GetShmemTempDir(bool executable,base::FilePath * path)24bool GetShmemTempDir(bool executable, base::FilePath* path) { 25 return PathService::Get(base::DIR_CACHE, path); 26 } 27 28 } // namespace base 29