summaryrefslogtreecommitdiffstats
path: root/base/memory
diff options
context:
space:
mode:
authorc.shu@samsung.com <c.shu@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 16:55:27 +0000
committerc.shu@samsung.com <c.shu@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 16:55:27 +0000
commit35b4f0cda0ee3711e330a36bf8a182c05852efa4 (patch)
tree53157d83d6b3d39a6300ceab12b8811bb538ea20 /base/memory
parent8851dbe0c2351690da1488c9d58c686044fec9b5 (diff)
downloadchromium_src-35b4f0cda0ee3711e330a36bf8a182c05852efa4.zip
chromium_src-35b4f0cda0ee3711e330a36bf8a182c05852efa4.tar.gz
chromium_src-35b4f0cda0ee3711e330a36bf8a182c05852efa4.tar.bz2
Expose a low-end device mode override flags for non-android OSs as well
BUG=324824 Review URL: https://codereview.chromium.org/258663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/memory')
-rw-r--r--base/memory/discardable_memory_android.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/memory/discardable_memory_android.cc b/base/memory/discardable_memory_android.cc
index c3de3a3..3215969 100644
--- a/base/memory/discardable_memory_android.cc
+++ b/base/memory/discardable_memory_android.cc
@@ -4,7 +4,6 @@
#include "base/memory/discardable_memory.h"
-#include "base/android/sys_utils.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/lazy_instance.h"
@@ -13,6 +12,7 @@
#include "base/memory/discardable_memory_ashmem_allocator.h"
#include "base/memory/discardable_memory_emulated.h"
#include "base/memory/discardable_memory_malloc.h"
+#include "base/sys_info.h"
namespace base {
namespace {
@@ -26,7 +26,7 @@ const size_t kAshmemMemoryLimit = 512 * 1024 * 1024;
size_t GetOptimalAshmemRegionSizeForAllocator() {
// Note that this may do some I/O (without hitting the disk though) so it
// should not be called on the critical path.
- return base::android::SysUtils::AmountOfPhysicalMemoryKB() * 1024 / 8;
+ return base::SysInfo::AmountOfPhysicalMemory() / 8;
}
// Holds the shared state used for allocations.