xref: /aosp_15_r20/external/cronet/base/android/path_service_android.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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/android/jni_android.h"
6 #include "base/android/jni_string.h"
7 #include "base/base_jni/PathService_jni.h"
8 #include "base/files/file_path.h"
9 #include "base/path_service.h"
10 
11 namespace base {
12 namespace android {
13 
JNI_PathService_Override(JNIEnv * env,jint what,std::string & path)14 void JNI_PathService_Override(JNIEnv* env, jint what, std::string& path) {
15   PathService::Override(what, FilePath(path));
16 }
17 
18 }  // namespace android
19 }  // namespace base
20