Index: components/discardable_memory/service/discardable_shared_memory_manager.cc |
diff --git a/components/discardable_memory/service/discardable_shared_memory_manager.cc b/components/discardable_memory/service/discardable_shared_memory_manager.cc |
index e2966c798c78bfafbc28f69e0d85095aa9f89582..650fc0134af4554f94d4540fb145bd0d40c74e71 100644 |
--- a/components/discardable_memory/service/discardable_shared_memory_manager.cc |
+++ b/components/discardable_memory/service/discardable_shared_memory_manager.cc |
@@ -440,7 +440,7 @@ void DiscardableSharedMemoryManager::AllocateLockedDiscardableSharedMemory( |
MemorySegmentMap& client_segments = clients_[client_id]; |
if (client_segments.find(id) != client_segments.end()) { |
LOG(ERROR) << "Invalid discardable shared memory ID"; |
- *shared_memory_handle = base::SharedMemory::NULLHandle(); |
+ *shared_memory_handle = base::SharedMemoryHandle(); |
return; |
} |
@@ -461,14 +461,14 @@ void DiscardableSharedMemoryManager::AllocateLockedDiscardableSharedMemory( |
std::unique_ptr<base::DiscardableSharedMemory> memory( |
new base::DiscardableSharedMemory); |
if (!memory->CreateAndMap(size)) { |
- *shared_memory_handle = base::SharedMemory::NULLHandle(); |
+ *shared_memory_handle = base::SharedMemoryHandle(); |
return; |
} |
base::CheckedNumeric<size_t> checked_bytes_allocated = bytes_allocated_; |
checked_bytes_allocated += memory->mapped_size(); |
if (!checked_bytes_allocated.IsValid()) { |
- *shared_memory_handle = base::SharedMemory::NULLHandle(); |
+ *shared_memory_handle = base::SharedMemoryHandle(); |
return; |
} |