Index: content/common/host_discardable_shared_memory_manager.cc |
diff --git a/content/common/host_discardable_shared_memory_manager.cc b/content/common/host_discardable_shared_memory_manager.cc |
index 2168e0a59279293872281b06a0dc40156503ec9f..5856d3c9b386f2df84a914e08d4b376d507604b2 100644 |
--- a/content/common/host_discardable_shared_memory_manager.cc |
+++ b/content/common/host_discardable_shared_memory_manager.cc |
@@ -165,7 +165,7 @@ HostDiscardableSharedMemoryManager::MemorySegment::~MemorySegment() { |
HostDiscardableSharedMemoryManager::HostDiscardableSharedMemoryManager() |
: memory_limit_(GetDefaultMemoryLimit()), |
bytes_allocated_(0), |
- memory_pressure_listener_(new base::MemoryPressureListener( |
+ memory_pressure_listener_(base::MemoryPressureListener::Create( |
base::Bind(&HostDiscardableSharedMemoryManager::OnMemoryPressure, |
base::Unretained(this)))), |
// Current thread might not have a task runner in tests. |