Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3779)

Unified Diff: base/allocator/allocator_extension.cc

Issue 1468993003: [Eraser] Remove chrome://tcmalloc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/allocator/allocator_extension.cc
diff --git a/base/allocator/allocator_extension.cc b/base/allocator/allocator_extension.cc
index bcfe89beb0ea7339bc52b38621bb3d5094110b4f..0d91bb0e146edbbf2f9f26a5ed0dbec0766241a9 100644
--- a/base/allocator/allocator_extension.cc
+++ b/base/allocator/allocator_extension.cc
@@ -16,15 +16,6 @@ bool GetAllocatorWasteSize(size_t* size) {
get_allocator_waste_size_function(size);
}
-void GetStats(char* buffer, int buffer_length) {
- DCHECK_GT(buffer_length, 0);
- thunks::GetStatsFunction get_stats_function = thunks::GetGetStatsFunction();
- if (get_stats_function)
- get_stats_function(buffer, buffer_length);
- else
- buffer[0] = '\0';
-}
-
void ReleaseFreeMemory() {
thunks::ReleaseFreeMemoryFunction release_free_memory_function =
thunks::GetReleaseFreeMemoryFunction();
@@ -39,12 +30,6 @@ void SetGetAllocatorWasteSizeFunction(
thunks::SetGetAllocatorWasteSizeFunction(get_allocator_waste_size_function);
}
-void SetGetStatsFunction(thunks::GetStatsFunction get_stats_function) {
- DCHECK_EQ(thunks::GetGetStatsFunction(),
- reinterpret_cast<thunks::GetStatsFunction>(NULL));
- thunks::SetGetStatsFunction(get_stats_function);
-}
-
void SetReleaseFreeMemoryFunction(
thunks::ReleaseFreeMemoryFunction release_free_memory_function) {
DCHECK_EQ(thunks::GetReleaseFreeMemoryFunction(),

Powered by Google App Engine
This is Rietveld 408576698