path_service_android.cc 699 B

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