OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/android/base_jni_onload.h" | 7 #include "base/android/base_jni_onload.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/library_loader/library_loader_hooks.h" | 9 #include "base/android/library_loader/library_loader_hooks.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 base::android::LibraryLoaderExitHook(); | 39 base::android::LibraryLoaderExitHook(); |
40 | 40 |
41 return JNI_VERSION_1_4; | 41 return JNI_VERSION_1_4; |
42 } | 42 } |
43 | 43 |
44 extern "C" JNI_EXPORT void InitApplicationContext( | 44 extern "C" JNI_EXPORT void InitApplicationContext( |
45 const base::android::JavaRef<jobject>& context) { | 45 const base::android::JavaRef<jobject>& context) { |
46 JNIEnv* env = base::android::AttachCurrentThread(); | 46 JNIEnv* env = base::android::AttachCurrentThread(); |
47 base::android::InitApplicationContext(env, context); | 47 base::android::InitApplicationContext(env, context); |
48 } | 48 } |
OLD | NEW |