1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
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/files/file_path.h"
8 #include "base/path_service.h"
9 #include "jni/PathService_jni.h"
10 
11 namespace base {
12 namespace android {
13 
JNI_PathService_Override(JNIEnv * env,const JavaParamRef<jclass> & clazz,jint what,const JavaParamRef<jstring> & path)14 void JNI_PathService_Override(JNIEnv* env,
15                               const JavaParamRef<jclass>& clazz,
16                               jint what,
17                               const JavaParamRef<jstring>& path) {
18   FilePath file_path(ConvertJavaStringToUTF8(env, path));
19   PathService::Override(what, file_path);
20 }
21 
22 }  // namespace android
23 }  // namespace base
24