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

Unified Diff: base/android/linker/linker_jni.cc

Issue 141223002: Move the android library loader from content to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/linker/DEPS ('k') | base/base.gyp » ('j') | base/base.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/linker/linker_jni.cc
diff --git a/content/common/android/linker/linker_jni.cc b/base/android/linker/linker_jni.cc
similarity index 96%
rename from content/common/android/linker/linker_jni.cc
rename to base/android/linker/linker_jni.cc
index 7db9fea48e2cc05baf353c4b6e623f8beb093003..a7a6b927c3320b2e86ba4bf43ce47e18c7b110fc 100644
--- a/content/common/android/linker/linker_jni.cc
+++ b/base/android/linker/linker_jni.cc
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This is the Android-specific content linker, a tiny shared library
+// This is the Android-specific Chromium linker, a tiny shared library
// implementing a custom dynamic linker that can be used to load the
-// real content-based libraries (e.g. libcontentshell.so).
+// real Chromium libraries (e.g. libcontentshell.so).
// The main point of this linker is to be able to share the RELRO
// section of libcontentshell.so (or equivalent) between the browser and
@@ -24,7 +24,7 @@
// in base/ which hasn't been loaded yet.
#define DEBUG 0
-#define TAG "content_android_linker"
+#define TAG "chromium_android_linker"
#if DEBUG
#define LOG_INFO(...) __android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__)
@@ -154,7 +154,7 @@ struct LibInfo_class {
bool Init(JNIEnv* env) {
jclass clazz;
if (!InitClassReference(
- env, "org/chromium/content/app/Linker$LibInfo", &clazz)) {
+ env, "org/chromium/base/library_loader/Linker$LibInfo", &clazz)) {
return false;
}
@@ -221,7 +221,7 @@ crazy_context_t* GetCrazyContext() {
return s_crazy_context;
}
-// Load a library with the content linker. This will also call its
+// Load a library with the chromium linker. This will also call its
// JNI_OnLoad() method, which shall register its methods. Note that
// lazy native method resolution will _not_ work after this, because
// Dalvik uses the system's dlsym() which won't see the new library,
@@ -387,7 +387,7 @@ const JNINativeMethod kNativeMethods[] = {
"("
"Ljava/lang/String;"
"J"
- "Lorg/chromium/content/app/Linker$LibInfo;"
+ "Lorg/chromium/base/library_loader/Linker$LibInfo;"
")"
"Z",
reinterpret_cast<void*>(&LoadLibrary)},
@@ -395,14 +395,14 @@ const JNINativeMethod kNativeMethods[] = {
"("
"Ljava/lang/String;"
"J"
- "Lorg/chromium/content/app/Linker$LibInfo;"
+ "Lorg/chromium/base/library_loader/Linker$LibInfo;"
")"
"Z",
reinterpret_cast<void*>(&CreateSharedRelro)},
{"nativeUseSharedRelro",
"("
"Ljava/lang/String;"
- "Lorg/chromium/content/app/Linker$LibInfo;"
+ "Lorg/chromium/base/library_loader/Linker$LibInfo;"
")"
"Z",
reinterpret_cast<void*>(&UseSharedRelro)},
@@ -434,7 +434,7 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) {
// Register native methods.
jclass linker_class;
if (!InitClassReference(
- env, "org/chromium/content/app/Linker", &linker_class))
+ env, "org/chromium/base/library_loader/Linker", &linker_class))
return -1;
LOG_INFO("%s: Registering native methods", __FUNCTION__);
« no previous file with comments | « base/android/linker/DEPS ('k') | base/base.gyp » ('j') | base/base.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698