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

Unified Diff: base/android/sys_utils.h

Issue 59033008: android: Make org.chromium.base.SysUtils.isLowEndDevice() work without native code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Created 7 years, 1 month 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 78122ff572d632b9fb1538c52b8696d22c34e2d3..318c75e6140cf317a960b0385fc76fdbb997da07 100644
--- a/base/android/sys_utils.h
+++ b/base/android/sys_utils.h
@@ -14,8 +14,12 @@ class BASE_EXPORT SysUtils {
public:
static bool Register(JNIEnv* env);
+ // Returns true iff this is a low-end device.
static bool IsLowEndDevice();
+ // Return the device's RAM size in kilo-bytes. Used for testing.
+ static size_t AmountOfPhysicalMemoryKB();
+
private:
SysUtils();
};

Powered by Google App Engine
This is Rietveld 408576698