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

Unified Diff: content/public/android/java/src/org/chromium/content/app/Linker.java

Issue 59033008: android: Make org.chromium.base.SysUtils.isLowEndDevice() work without native code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Created 7 years, 1 month 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: content/public/android/java/src/org/chromium/content/app/Linker.java
diff --git a/content/public/android/java/src/org/chromium/content/app/Linker.java b/content/public/android/java/src/org/chromium/content/app/Linker.java
index 5cfa8223d7bb5e5e5d26aafe15befc96737a5d8a..3bcef73962819f84f86d3769ebfd93aca9c05449 100644
--- a/content/public/android/java/src/org/chromium/content/app/Linker.java
+++ b/content/public/android/java/src/org/chromium/content/app/Linker.java
@@ -18,6 +18,8 @@ import android.os.Parcelable;
import android.os.ParcelFileDescriptor;
import android.util.Log;
+import org.chromium.base.SysUtils;
+
/*
* Technical note:
*
@@ -240,7 +242,7 @@ public class Linker {
}
if (sMemoryDeviceConfig == MEMORY_DEVICE_CONFIG_INIT) {
- sMemoryDeviceConfig = nativeIsLowMemoryDevice() ?
+ sMemoryDeviceConfig = SysUtils.isLowEndDevice() ?
MEMORY_DEVICE_CONFIG_LOW : MEMORY_DEVICE_CONFIG_NORMAL;
}
@@ -886,9 +888,6 @@ public class Linker {
// Returns the native page size in bytes.
private static native long nativeGetPageSize();
- // Checks whether this is a low-memory device.
- private static native boolean nativeIsLowMemoryDevice();
-
/**
* Record information for a given library.
* IMPORTANT: Native code knows about this class's fields, so

Powered by Google App Engine
This is Rietveld 408576698