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.
5 #include "content/public/app/content_jni_onload.h"
9 #include "base/android/base_jni_onload.h"
10 #include "base/android/library_loader/library_loader_hooks.h"
11 #include "base/bind.h"
12 #include "content/app/android/library_loader_hooks.h"
13 #include "content/public/app/content_main.h"
20 bool RegisterJNI(JNIEnv
* env
) {
21 return content::EnsureJniRegistered(env
);
25 base::android::SetLibraryLoadedHook(&content::LibraryLoaded
);
32 bool OnJNIOnLoadRegisterJNI(
34 std::vector
<base::android::RegisterCallback
> callbacks
) {
35 callbacks
.push_back(base::Bind(&RegisterJNI
));
36 return base::android::OnJNIOnLoadRegisterJNI(vm
, callbacks
);
40 std::vector
<base::android::InitCallback
> callbacks
) {
41 callbacks
.push_back(base::Bind(&Init
));
42 return base::android::OnJNIOnLoadInit(callbacks
);
45 } // namespace android
46 } // namespace content