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

Unified Diff: base/android/sys_utils.h

Issue 2933503002: Add IsCurrentlyLowMemory (Closed)
Patch Set: changed to private 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
Index: base/android/sys_utils.h
diff --git a/base/android/sys_utils.h b/base/android/sys_utils.h
index 2edbdd512ce43e47b4ac9419ee9427cb267b2c53..b1e368bac9bfecacd43f23433eaf2956f5cac299 100644
--- a/base/android/sys_utils.h
+++ b/base/android/sys_utils.h
@@ -14,6 +14,8 @@ class BASE_EXPORT SysUtils {
public:
// Returns true iff this is a low-end device.
static bool IsLowEndDeviceFromJni();
+ // Returns true if system has low available memory.
+ static bool IsCurrentlyLowMemory();
};
} // namespace android

Powered by Google App Engine
This is Rietveld 408576698