Commit ffe76faf authored by Olle Liljenzin's avatar Olle Liljenzin Committed by Commit Bot

Add @MainDex annotation to SysUtils

SysUtils has to be in main dex file since child processes use
SysInfo::IsLowEndDevice() which depends on it.

Bug: 1018167
Change-Id: I61c2a040e1ccb78725c852bcabe31cf45f217522
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1879896
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709453}
parent 5daba75f
......@@ -16,6 +16,7 @@ import android.util.Log;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.MainDex;
import org.chromium.base.annotations.NativeMethods;
import org.chromium.base.metrics.CachedMetrics;
......@@ -28,6 +29,7 @@ import java.util.regex.Pattern;
* Exposes system related information about the current device.
*/
@JNINamespace("base::android")
@MainDex
public class SysUtils {
// A device reporting strictly more total memory in megabytes cannot be considered 'low-end'.
private static final int ANDROID_LOW_MEMORY_DEVICE_THRESHOLD_MB = 512;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment