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

Unified Diff: android/java/src/org/chromium/base/library_loader/ModernLinker.java

Issue 2050803003: Update to Chromium //base at Chromium commit e3a753f17bac62738b0dbf0b36510f767b081e4b. (Closed) Base URL: https://github.com/domokit/base.git@master
Patch Set: Created 4 years, 6 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
Index: android/java/src/org/chromium/base/library_loader/ModernLinker.java
diff --git a/android/java/src/org/chromium/base/library_loader/ModernLinker.java b/android/java/src/org/chromium/base/library_loader/ModernLinker.java
index a43777915ace9873c24d26573b70090807d7a51a..4b01186c41f6dc6dfef55f401f769c4dd3ff4e98 100644
--- a/android/java/src/org/chromium/base/library_loader/ModernLinker.java
+++ b/android/java/src/org/chromium/base/library_loader/ModernLinker.java
@@ -70,32 +70,20 @@ class ModernLinker extends Linker {
return new ModernLinker();
}
- // Used internally to initialize the linker's data. Assume lock is held.
+ // Used internally to initialize the linker's data. Assumes lock is held.
private void ensureInitializedLocked() {
assert Thread.holdsLock(mLock);
assert NativeLibraries.sUseLinker;
- // On first call, load libchromium_android_linker.so.
+ // On first call, load libchromium_android_linker.so. Cannot be done in the
+ // constructor because the instance is constructed on the UI thread.
if (!mInitialized) {
- loadLinkerJNILibrary();
+ loadLinkerJniLibrary();
mInitialized = true;
}
}
/**
- * Call this method to determine if this chromium project must
- * use this linker. If not, System.loadLibrary() should be used to load
- * libraries instead.
- */
- @Override
- public boolean isUsed() {
- // Only GYP targets that are APKs and have the 'use_chromium_linker' variable
- // defined as 1 will use this linker. For all others (the default), the
- // auto-generated NativeLibraries.sUseLinker variable will be false.
- return NativeLibraries.sUseLinker;
- }
-
- /**
* Call this method to determine if the linker will try to use shared RELROs
* for the browser process.
*/
« no previous file with comments | « android/java/src/org/chromium/base/library_loader/Linker.java ('k') | android/jni_generator/golden_sample_for_tests_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698