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

Unified Diff: base/android/sys_utils.cc

Issue 23717023: Android: Add chrome-specific dynamic linker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update content_tests.gypi Created 7 years, 2 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.cc
diff --git a/base/android/sys_utils.cc b/base/android/sys_utils.cc
index c23125390dab446885527f5f57b2bf11d692c455..42a2db121b1b0a03d65cab2cffe9217a7a00af6c 100644
--- a/base/android/sys_utils.cc
+++ b/base/android/sys_utils.cc
@@ -7,7 +7,14 @@
#include "base/sys_info.h"
#include "jni/SysUtils_jni.h"
-const int64 kLowEndMemoryThreshold = 1024 * 1024 * 512; // 512 mb.
+// Any device that reports a physical RAM size less than this, in megabytes
+// is considered 'low-end'. IMPORTANT: Read the LinkerLowMemoryThresholdTest
+// comments in build/android/pylib/linker/test_case.py before modifying this
+// value.
+#define ANDROID_LOW_MEMORY_DEVICE_THRESHOLD_MB 512
+
+const int64 kLowEndMemoryThreshold =
+ 1024 * 1024 * ANDROID_LOW_MEMORY_DEVICE_THRESHOLD_MB;
// Defined and called by JNI
static jboolean IsLowEndDevice(JNIEnv* env, jclass clazz) {
« no previous file with comments | « android_webview/java/generated_src/org/chromium/content/app/NativeLibraries.java ('k') | build/android/gyp/gcc_preprocess.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698