| Index: base/metrics/persistent_histogram_allocator.cc
|
| diff --git a/base/metrics/persistent_histogram_allocator.cc b/base/metrics/persistent_histogram_allocator.cc
|
| index 5320d3fa45920353dc272d0a4fab3a376208673e..92fdc86440696777f805b66ad74d102131a81662 100644
|
| --- a/base/metrics/persistent_histogram_allocator.cc
|
| +++ b/base/metrics/persistent_histogram_allocator.cc
|
| @@ -897,7 +897,11 @@ void GlobalHistogramAllocator::DeletePersistentLocation() {
|
| GlobalHistogramAllocator::GlobalHistogramAllocator(
|
| std::unique_ptr<PersistentMemoryAllocator> memory)
|
| : PersistentHistogramAllocator(std::move(memory)),
|
| - import_iterator_(this) {}
|
| + import_iterator_(this) {
|
| + // Make sure the StatisticsRecorder is initialized to prevent duplicate
|
| + // histograms from being created. It's safe to call this multiple times.
|
| + StatisticsRecorder::Initialize();
|
| +}
|
|
|
| void GlobalHistogramAllocator::ImportHistogramsToStatisticsRecorder() {
|
| // Skip the import if it's the histogram that was last created. Should a
|
|
|