| 6 | #include "base/android/jni_string.h" |
| 7 | #include "base/base_jni_headers/PathService_jni.h" |
| 8 | #include "base/files/file_path.h" |
| 9 | #include "base/path_service.h" |
| 10 |
| 11 | namespace base { |
| 12 | namespace android { |
| 13 |
| 14 | void JNI_PathService_Override(JNIEnv* env, |
| 15 | jint what, |
| 16 | const JavaParamRef<jstring>& path) { |
| 17 | FilePath file_path(ConvertJavaStringToUTF8(env, path)); |
| 18 | PathService::Override(what, file_path); |
| 19 | } |
| 20 |
| 21 | } // namespace android |
| 22 | } // namespace base |
| 23 |