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

Unified Diff: base/metrics/persistent_histogram_allocator.cc

Issue 2715543005: Clean up: Remove GlobalHistogramAllocator::CreateWithSharedMemory (Closed)
Patch Set: Created 3 years, 10 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/metrics/persistent_histogram_allocator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/persistent_histogram_allocator.cc
diff --git a/base/metrics/persistent_histogram_allocator.cc b/base/metrics/persistent_histogram_allocator.cc
index 939174ecaf63f867fbfe96bc9b784ba4a6ad0612..92004682ec497916c37187ec470fe1bac5d0a6b3 100644
--- a/base/metrics/persistent_histogram_allocator.cc
+++ b/base/metrics/persistent_histogram_allocator.cc
@@ -785,24 +785,6 @@ void GlobalHistogramAllocator::ConstructFilePaths(const FilePath& dir,
#endif // !defined(OS_NACL)
// static
-void GlobalHistogramAllocator::CreateWithSharedMemory(
- std::unique_ptr<SharedMemory> memory,
- size_t size,
- uint64_t id,
- StringPiece name) {
- if ((!memory->memory() && !memory->Map(size)) ||
- !SharedPersistentMemoryAllocator::IsSharedMemoryAcceptable(*memory)) {
- NOTREACHED();
- return;
- }
-
- DCHECK_LE(memory->mapped_size(), size);
- Set(WrapUnique(
- new GlobalHistogramAllocator(MakeUnique<SharedPersistentMemoryAllocator>(
- std::move(memory), 0, StringPiece(), /*readonly=*/false))));
-}
-
-// static
void GlobalHistogramAllocator::CreateWithSharedMemoryHandle(
const SharedMemoryHandle& handle,
size_t size) {
« no previous file with comments | « base/metrics/persistent_histogram_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698