| Index: base/android/java/src/org/chromium/base/SysUtils.java
|
| diff --git a/base/android/java/src/org/chromium/base/SysUtils.java b/base/android/java/src/org/chromium/base/SysUtils.java
|
| index 74bac1055336b09d27a78d6dbc4a1ee0eb18578d..df2cd29e49e2fd87b89863e586a06e32b7a6b786 100644
|
| --- a/base/android/java/src/org/chromium/base/SysUtils.java
|
| +++ b/base/android/java/src/org/chromium/base/SysUtils.java
|
| @@ -116,16 +116,14 @@ public class SysUtils {
|
| return false;
|
| }
|
|
|
| - Context context = ApplicationStatus.getApplicationContext();
|
| + Context context = ContextUtils.getApplicationContext();
|
| // Only KitKat and later devices have isLowRamDevice() call available.
|
| - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && context != null) {
|
| + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
| ActivityManager activityManager = (ActivityManager)
|
| context.getSystemService(Context.ACTIVITY_SERVICE);
|
| if (activityManager.isLowRamDevice()) {
|
| return true;
|
| }
|
| - } else {
|
| - Log.e(TAG, "ApplicationContext is null in ApplicationStatus");
|
| }
|
|
|
| int ramSizeMB = amountOfPhysicalMemoryMB();
|
|
|