Index: base/memory/discardable_memory_win.cc |
diff --git a/base/memory/discardable_memory_win.cc b/base/memory/discardable_memory_win.cc |
index d2cd6a542ab324007a2401be087e830e060779a1..f4aade3c602f574001e0383fa75093de81262f27 100644 |
--- a/base/memory/discardable_memory_win.cc |
+++ b/base/memory/discardable_memory_win.cc |
@@ -6,7 +6,6 @@ |
#include "base/logging.h" |
#include "base/memory/discardable_memory_emulated.h" |
-#include "base/memory/discardable_memory_malloc.h" |
namespace base { |
@@ -19,8 +18,7 @@ bool DiscardableMemory::ReduceMemoryUsage() { |
void DiscardableMemory::GetSupportedTypes( |
std::vector<DiscardableMemoryType>* types) { |
const DiscardableMemoryType supported_types[] = { |
- DISCARDABLE_MEMORY_TYPE_EMULATED, |
- DISCARDABLE_MEMORY_TYPE_MALLOC |
+ DISCARDABLE_MEMORY_TYPE_EMULATED |
}; |
types->assign(supported_types, supported_types + arraysize(supported_types)); |
} |
@@ -37,14 +35,6 @@ scoped_ptr<DiscardableMemory> DiscardableMemory::CreateLockedMemoryWithType( |
return memory.PassAs<DiscardableMemory>(); |
} |
- case DISCARDABLE_MEMORY_TYPE_MALLOC: { |
- scoped_ptr<internal::DiscardableMemoryMalloc> memory( |
- new internal::DiscardableMemoryMalloc(size)); |
- if (!memory->Initialize()) |
- return scoped_ptr<DiscardableMemory>(); |
- |
- return memory.PassAs<DiscardableMemory>(); |
- } |
case DISCARDABLE_MEMORY_TYPE_NONE: |
case DISCARDABLE_MEMORY_TYPE_ASHMEM: |
case DISCARDABLE_MEMORY_TYPE_MAC: |