Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / base / sys_info_android.cc
index 8884e15..ab760e5 100644 (file)
@@ -7,6 +7,7 @@
 #include <dlfcn.h>
 #include <sys/system_properties.h>
 
+#include "base/android/sys_utils.h"
 #include "base/lazy_instance.h"
 #include "base/logging.h"
 #include "base/strings/string_number_conversions.h"
@@ -205,5 +206,14 @@ int SysInfo::DalvikHeapGrowthLimitMB() {
   return heap_growth_limit;
 }
 
+static base::LazyInstance<
+    base::internal::LazySysInfoValue<bool,
+        android::SysUtils::IsLowEndDeviceFromJni> >::Leaky
+    g_lazy_low_end_device = LAZY_INSTANCE_INITIALIZER;
+
+bool SysInfo::IsLowEndDevice() {
+  return g_lazy_low_end_device.Get().value();
+}
+
 
 }  // namespace base