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

Unified Diff: base/allocator/allocator_extension_thunks.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months 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
« no previous file with comments | « base/allocator/allocator_extension_thunks.h ('k') | base/allocator/allocator_shim_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_extension_thunks.cc
diff --git a/base/allocator/allocator_extension_thunks.cc b/base/allocator/allocator_extension_thunks.cc
deleted file mode 100644
index e4024fb332e8d1edc4cff44bbcbb340c7c730f0a..0000000000000000000000000000000000000000
--- a/base/allocator/allocator_extension_thunks.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/allocator/allocator_extension_thunks.h"
-
-#include <cstddef> // for NULL
-
-namespace base {
-namespace allocator {
-namespace thunks {
-
-// This slightly odd translation unit exists because of the peculularity of how
-// allocator_unittests work on windows. That target has to perform
-// tcmalloc-specific initialization on windows, but it cannot depend on base
-// otherwise. This target sits in the middle - base and allocator_unittests
-// can depend on it. This file can't depend on anything else in base, including
-// logging.
-
-static GetAllocatorWasteSizeFunction g_get_allocator_waste_size_function = NULL;
-static GetStatsFunction g_get_stats_function = NULL;
-static ReleaseFreeMemoryFunction g_release_free_memory_function = NULL;
-
-void SetGetAllocatorWasteSizeFunction(
- GetAllocatorWasteSizeFunction get_allocator_waste_size_function) {
- g_get_allocator_waste_size_function = get_allocator_waste_size_function;
-}
-
-GetAllocatorWasteSizeFunction GetGetAllocatorWasteSizeFunction() {
- return g_get_allocator_waste_size_function;
-}
-
-void SetGetStatsFunction(GetStatsFunction get_stats_function) {
- g_get_stats_function = get_stats_function;
-}
-
-GetStatsFunction GetGetStatsFunction() {
- return g_get_stats_function;
-}
-
-void SetReleaseFreeMemoryFunction(
- ReleaseFreeMemoryFunction release_free_memory_function) {
- g_release_free_memory_function = release_free_memory_function;
-}
-
-ReleaseFreeMemoryFunction GetReleaseFreeMemoryFunction() {
- return g_release_free_memory_function;
-}
-
-} // namespace thunks
-} // namespace allocator
-} // namespace base
« no previous file with comments | « base/allocator/allocator_extension_thunks.h ('k') | base/allocator/allocator_shim_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698