Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: content/app/android/content_jni_onload_delegate.cc

Issue 864563002: Separate JNI registration with initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698