Index: base/android/sys_utils.cc |
diff --git a/base/android/sys_utils.cc b/base/android/sys_utils.cc |
index a5766449e863ede128d15eeecc9216a1ea85e63b..6201f8c48d0fb28ede6645626492f3ca1a9f677e 100644 |
--- a/base/android/sys_utils.cc |
+++ b/base/android/sys_utils.cc |
@@ -16,6 +16,11 @@ bool SysUtils::IsLowEndDeviceFromJni() { |
return Java_SysUtils_isLowEndDevice(env); |
} |
+bool SysUtils::IsCurrentlyLowMemory() { |
+ JNIEnv* env = AttachCurrentThread(); |
+ return Java_SysUtils_isCurrentlyLowMemory(env); |
+} |
+ |
} // namespace android |
} // namespace base |