OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 "content/app/android/content_jni_onload_delegate.h" |
| 6 |
| 7 #include "base/android/library_loader/library_loader_hooks.h" |
| 8 #include "content/public/app/android_library_loader_hooks.h" |
| 9 #include "content/public/app/content_main.h" |
| 10 |
| 11 using base::android::JNIOnLoadDelegate; |
| 12 |
| 13 namespace content { |
| 14 namespace android { |
| 15 |
| 16 bool ContentJNIOnLoadDelegate::RegisterJNI(JNIEnv* env) { |
| 17 // TODO(michaelbai): Remove the EnsureJniRegistered from |
| 18 // content::LibraryLoaded and move android_library_loader_hooks.h to |
| 19 // content/app/android/. |
| 20 return content::EnsureJniRegistered(env); |
| 21 } |
| 22 |
| 23 bool ContentJNIOnLoadDelegate::Init() { |
| 24 base::android::SetLibraryLoadedHook(&content::LibraryLoaded); |
| 25 return true; |
| 26 } |
| 27 |
| 28 } // namespace android |
| 29 } // namespace content |
OLD | NEW |