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

Unified Diff: base/memory/discardable_memory_android.cc

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: Created 6 years, 8 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
« no previous file with comments | « base/base_switches.cc ('k') | base/sys_utils.h » ('j') | base/sys_utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/discardable_memory_android.cc
diff --git a/base/memory/discardable_memory_android.cc b/base/memory/discardable_memory_android.cc
index fa89c189db7be5170ecf30ea3a2a882c24fc87db..294a4ebe5194075d0671925cf84073aa703e2a21 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"
@@ -12,6 +11,7 @@
#include "base/memory/discardable_memory_allocator_android.h"
#include "base/memory/discardable_memory_emulated.h"
#include "base/memory/discardable_memory_malloc.h"
+#include "base/sys_utils.h"
namespace base {
namespace {
@@ -31,7 +31,7 @@ struct DiscardableMemoryAllocatorWrapper {
static 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::SysUtils::AmountOfPhysicalMemoryKB() * 1024 / 8;
}
};
« no previous file with comments | « base/base_switches.cc ('k') | base/sys_utils.h » ('j') | base/sys_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698