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

Unified Diff: base/metrics/persistent_histogram_allocator.h

Issue 1671933002: Create and pass shared-histogram-allocator from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hsm-merge
Patch Set: addressed review comments by Alexei; fixed test on some builds Created 4 years, 9 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
Index: base/metrics/persistent_histogram_allocator.h
diff --git a/base/metrics/persistent_histogram_allocator.h b/base/metrics/persistent_histogram_allocator.h
index cc8d0233d3d337456651fe9ae9cdadca82d22f0f..4319de98929b221c7980f796becb5d45dd87b68f 100644
--- a/base/metrics/persistent_histogram_allocator.h
+++ b/base/metrics/persistent_histogram_allocator.h
@@ -129,8 +129,13 @@ class BASE_EXPORT PersistentHistogramAllocator {
uint64_t id,
StringPiece name);
static void CreateGlobalAllocatorOnSharedMemory(
+ scoped_ptr<SharedMemory> memory,
size_t size,
- const SharedMemoryHandle& handle);
+ uint64_t id,
+ StringPiece name);
+ static void CreateGlobalAllocatorOnSharedMemoryHandle(
+ const SharedMemoryHandle& handle,
+ size_t size);
// Import new histograms from the global PersistentHistogramAllocator. It's
// possible for other processes to create histograms in the active memory
« no previous file with comments | « no previous file | base/metrics/persistent_histogram_allocator.cc » ('j') | base/metrics/persistent_histogram_allocator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698