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

Unified Diff: base/android/sys_utils.cc

Issue 2933503002: Add IsCurrentlyLowMemory (Closed)
Patch Set: added comment Created 3 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
« no previous file with comments | « base/android/sys_utils.h ('k') | third_party/WebKit/Source/platform/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/android/sys_utils.h ('k') | third_party/WebKit/Source/platform/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698