| 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/app/android/library_loader_hooks.h" | 5 #include "content/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/command_line_android.h" | 8 #include "base/android/command_line_android.h" |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_registrar.h" | 10 #include "base/android/jni_registrar.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 if (!ui::android::RegisterJni(env)) | 56 if (!ui::android::RegisterJni(env)) |
| 57 return false; | 57 return false; |
| 58 | 58 |
| 59 if (!ui::gl::android::RegisterJni(env)) | 59 if (!ui::gl::android::RegisterJni(env)) |
| 60 return false; | 60 return false; |
| 61 | 61 |
| 62 if (!ui::events::android::RegisterJni(env)) | 62 if (!ui::events::android::RegisterJni(env)) |
| 63 return false; | 63 return false; |
| 64 | 64 |
| 65 #if !defined(USE_AURA) | |
| 66 if (!ui::shell_dialogs::RegisterJni(env)) | |
| 67 return false; | |
| 68 #endif | |
| 69 | |
| 70 if (!content::android::RegisterCommonJni(env)) | 65 if (!content::android::RegisterCommonJni(env)) |
| 71 return false; | 66 return false; |
| 72 | 67 |
| 73 if (!content::android::RegisterBrowserJni(env)) | 68 if (!content::android::RegisterBrowserJni(env)) |
| 74 return false; | 69 return false; |
| 75 | 70 |
| 76 if (!content::android::RegisterAppJni(env)) | 71 if (!content::android::RegisterAppJni(env)) |
| 77 return false; | 72 return false; |
| 78 | 73 |
| 79 if (!device::android::RegisterBluetoothJni(env)) | 74 if (!device::android::RegisterBluetoothJni(env)) |
| 80 return false; | 75 return false; |
| 81 | 76 |
| 82 if (!media::RegisterJni(env)) | 77 if (!media::RegisterJni(env)) |
| 83 return false; | 78 return false; |
| 84 | 79 |
| 85 if (!media::midi::RegisterJni(env)) | 80 if (!media::midi::RegisterJni(env)) |
| 86 return false; | 81 return false; |
| 87 | 82 |
| 83 #if !defined(USE_AURA) |
| 84 if (!ui::shell_dialogs::RegisterJni(env)) |
| 85 return false; |
| 86 |
| 88 if (!ui::RegisterUIAndroidJni(env)) | 87 if (!ui::RegisterUIAndroidJni(env)) |
| 89 return false; | 88 return false; |
| 89 #endif |
| 90 | 90 |
| 91 g_jni_init_done = true; | 91 g_jni_init_done = true; |
| 92 } | 92 } |
| 93 | 93 |
| 94 return true; | 94 return true; |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool LibraryLoaded(JNIEnv* env, jclass clazz) { | 97 bool LibraryLoaded(JNIEnv* env, jclass clazz) { |
| 98 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 98 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 99 | 99 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 127 false, // Thread ID | 127 false, // Thread ID |
| 128 false, // Timestamp | 128 false, // Timestamp |
| 129 false); // Tick count | 129 false); // Tick count |
| 130 VLOG(0) << "Chromium logging enabled: level = " << logging::GetMinLogLevel() | 130 VLOG(0) << "Chromium logging enabled: level = " << logging::GetMinLogLevel() |
| 131 << ", default verbosity = " << logging::GetVlogVerbosity(); | 131 << ", default verbosity = " << logging::GetVlogVerbosity(); |
| 132 | 132 |
| 133 return true; | 133 return true; |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace content | 136 } // namespace content |
| OLD | NEW |