Index: base/allocator/allocator_shim_default_dispatch_to_winheap.cc |
diff --git a/base/allocator/allocator_shim_default_dispatch_to_winheap.cc b/base/allocator/allocator_shim_default_dispatch_to_winheap.cc |
index 4d5a27429a33e16bf18eabc2a432fb2c0882f0eb..2df3fdf5fef99cf63bcbe6317e6651dd5bda0ac8 100644 |
--- a/base/allocator/allocator_shim_default_dispatch_to_winheap.cc |
+++ b/base/allocator/allocator_shim_default_dispatch_to_winheap.cc |
@@ -47,10 +47,19 @@ void DefaultWinHeapFreeImpl(const AllocatorDispatch*, void* address) { |
base::allocator::WinHeapFree(address); |
} |
+size_t DefaultWinHeapGetSizeEstimateImpl(const AllocatorDispatch*, |
+ void* address) { |
+ return base::allocator::WinHeapGetSizeEstimate(address); |
+} |
+ |
} // namespace |
const AllocatorDispatch AllocatorDispatch::default_dispatch = { |
- &DefaultWinHeapMallocImpl, &DefaultWinHeapCallocImpl, |
- &DefaultWinHeapMemalignImpl, &DefaultWinHeapReallocImpl, |
- &DefaultWinHeapFreeImpl, nullptr, /* next */ |
+ &DefaultWinHeapMallocImpl, |
+ &DefaultWinHeapCallocImpl, |
+ &DefaultWinHeapMemalignImpl, |
+ &DefaultWinHeapReallocImpl, |
+ &DefaultWinHeapFreeImpl, |
+ &DefaultWinHeapGetSizeEstimateImpl, |
+ nullptr, /* next */ |
}; |