Index: base/memory/discardable_memory_mac.cc |
diff --git a/base/memory/discardable_memory_mac.cc b/base/memory/discardable_memory_mac.cc |
index fa6a23145c389bbfe7d420c3a7a6f68b4ccfb8a8..b2184e7d589c415f5cd98f09b0e77786d42333a2 100644 |
--- a/base/memory/discardable_memory_mac.cc |
+++ b/base/memory/discardable_memory_mac.cc |
@@ -25,7 +25,11 @@ |
const size_t kMacMemoryLimit = 512 * 1024 * 1024; |
struct SharedState { |
- SharedState() : manager(kMacMemoryLimit, kMacMemoryLimit, TimeDelta::Max()) {} |
+ SharedState() |
+ : manager(kMacMemoryLimit, |
+ kMacMemoryLimit, |
+ kMacMemoryLimit, |
+ TimeDelta::Max()) {} |
internal::DiscardableMemoryManager manager; |
}; |
@@ -156,6 +160,16 @@ |
} // namespace |
// static |
+void DiscardableMemory::RegisterMemoryPressureListeners() { |
+ internal::DiscardableMemoryEmulated::RegisterMemoryPressureListeners(); |
+} |
+ |
+// static |
+void DiscardableMemory::UnregisterMemoryPressureListeners() { |
+ internal::DiscardableMemoryEmulated::UnregisterMemoryPressureListeners(); |
+} |
+ |
+// static |
bool DiscardableMemory::ReduceMemoryUsage() { |
return internal::DiscardableMemoryEmulated::ReduceMemoryUsage(); |
} |