| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/android/base_jni_registrar.h" | |
| 6 #include "base/android/jni_android.h" | |
| 7 #include "base/android/library_loader/library_loader_hooks.h" | |
| 8 #include "chrome/app/android/chrome_android_initializer.h" | |
| 9 #include "chrome/app/android/chrome_main_delegate_android.h" | |
| 10 #include "components/devtools_bridge/android/session_dependency_factory_android.
h" | |
| 11 #include "components/devtools_bridge/test/android/client/web_client_android.h" | |
| 12 | |
| 13 using namespace devtools_bridge::android; | |
| 14 | |
| 15 namespace { | |
| 16 | |
| 17 class Delegate : public ChromeMainDelegateAndroid { | |
| 18 public: | |
| 19 bool RegisterApplicationNativeMethods(JNIEnv* env) override { | |
| 20 return ChromeMainDelegateAndroid::RegisterApplicationNativeMethods(env) && | |
| 21 SessionDependencyFactoryAndroid::InitializeSSL() && | |
| 22 WebClientAndroid::RegisterNatives(env); | |
| 23 } | |
| 24 }; | |
| 25 | |
| 26 } // namespace | |
| 27 | |
| 28 JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) { | |
| 29 return RunChrome(vm, new Delegate()); | |
| 30 } | |
| OLD | NEW |