OLD | NEW |
---|---|
(Empty) | |
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/path_service.h" | |
6 | |
7 #include "base/file_path.h" | |
8 #include "base/path_service.h" | |
9 #include "base/android/jni_android.h" | |
10 #include "base/android/jni_string.h" | |
11 | |
12 #include "jni/PathService_jni.h" | |
brettw
2012/08/02 19:38:53
I'd probably not put the extra blank line above th
benm (inactive)
2012/08/03 11:11:11
Done.
| |
13 | |
14 namespace base { | |
15 namespace android { | |
16 | |
17 void Override(JNIEnv* env, jclass clazz, jint what, jstring path) { | |
18 FilePath file_path(ConvertJavaStringToUTF8(env, path)); | |
19 PathService::Override(what, file_path); | |
20 } | |
21 | |
22 bool RegisterPathService(JNIEnv* env) { | |
23 return RegisterNativesImpl(env); | |
24 } | |
25 | |
26 } // namespace android | |
27 } // namespace base | |
OLD | NEW |