Index: base/sys_info_android.cc |
diff --git a/base/sys_info_android.cc b/base/sys_info_android.cc |
index 12da23b2878e329b54615857b4a91681bc0a1105..ab7c05d7c6f00686baac50e539256f95a728ff92 100644 |
--- a/base/sys_info_android.cc |
+++ b/base/sys_info_android.cc |
@@ -6,10 +6,13 @@ |
#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" |
#include "base/strings/string_piece.h" |
#include "base/strings/stringprintf.h" |
+#include "base/sys_info_internal.h" |
namespace { |
@@ -162,5 +165,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 |