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

Unified Diff: base/sys_info.h

Issue 258663002: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline again Created 6 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/sys_info.h
diff --git a/base/sys_info.h b/base/sys_info.h
index 7ce4e659f28b989e1151dddc3cf431923768539e..d24acdf6b434eddf991c7787dc4f4e10989e9003 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -129,6 +129,11 @@ class BASE_EXPORT SysInfo {
static int DalvikHeapSizeMB();
static int DalvikHeapGrowthLimitMB();
#endif // defined(OS_ANDROID)
+
+ // Returns true if this is a low-end device.
+ // Low-end device refers to devices having less than 512M memory in the
+ // current implementation.
+ static bool IsLowEndDevice();
};
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698