OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "content/public/app/android_library_loader_hooks.h" | 5 #include "content/public/app/android_library_loader_hooks.h" |
6 | 6 |
7 #include "base/android/base_jni_registrar.h" | 7 #include "base/android/base_jni_registrar.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_registrar.h" | 9 #include "base/android/jni_registrar.h" |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 if (!ui::android::RegisterJni(env)) | 84 if (!ui::android::RegisterJni(env)) |
85 return RESULT_CODE_FAILED_TO_REGISTER_JNI; | 85 return RESULT_CODE_FAILED_TO_REGISTER_JNI; |
86 | 86 |
87 if (!ui::gl::android::RegisterJni(env)) | 87 if (!ui::gl::android::RegisterJni(env)) |
88 return RESULT_CODE_FAILED_TO_REGISTER_JNI; | 88 return RESULT_CODE_FAILED_TO_REGISTER_JNI; |
89 | 89 |
90 if (!ui::shell_dialogs::RegisterJni(env)) | 90 if (!ui::shell_dialogs::RegisterJni(env)) |
91 return RESULT_CODE_FAILED_TO_REGISTER_JNI; | 91 return RESULT_CODE_FAILED_TO_REGISTER_JNI; |
92 | 92 |
93 if (!content::android::RegisterChildJni(env)) | |
94 return RESULT_CODE_FAILED_TO_REGISTER_JNI; | |
95 | |
96 if (!content::android::RegisterCommonJni(env)) | 93 if (!content::android::RegisterCommonJni(env)) |
97 return RESULT_CODE_FAILED_TO_REGISTER_JNI; | 94 return RESULT_CODE_FAILED_TO_REGISTER_JNI; |
98 | 95 |
99 if (!content::android::RegisterBrowserJni(env)) | 96 if (!content::android::RegisterBrowserJni(env)) |
100 return RESULT_CODE_FAILED_TO_REGISTER_JNI; | 97 return RESULT_CODE_FAILED_TO_REGISTER_JNI; |
101 | 98 |
102 if (!content::android::RegisterAppJni(env)) | 99 if (!content::android::RegisterAppJni(env)) |
103 return RESULT_CODE_FAILED_TO_REGISTER_JNI; | 100 return RESULT_CODE_FAILED_TO_REGISTER_JNI; |
104 | 101 |
105 if (!media::RegisterJni(env)) | 102 if (!media::RegisterJni(env)) |
(...skipping 21 matching lines...) Expand all Loading... |
127 } | 124 } |
128 | 125 |
129 bool RegisterLibraryLoaderEntryHook(JNIEnv* env) { | 126 bool RegisterLibraryLoaderEntryHook(JNIEnv* env) { |
130 // We need the AtExitManager to be created at the very beginning. | 127 // We need the AtExitManager to be created at the very beginning. |
131 g_at_exit_manager = new base::AtExitManager(); | 128 g_at_exit_manager = new base::AtExitManager(); |
132 | 129 |
133 return RegisterNativesImpl(env); | 130 return RegisterNativesImpl(env); |
134 } | 131 } |
135 | 132 |
136 } // namespace content | 133 } // namespace content |
OLD | NEW |