Chromium Code Reviews| 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..bc22826b7d7ebdf3b0ce168e784f91ddae4e4258 100644 |
| --- a/base/metrics/persistent_histogram_allocator.cc |
| +++ b/base/metrics/persistent_histogram_allocator.cc |
| @@ -897,7 +897,9 @@ void GlobalHistogramAllocator::DeletePersistentLocation() { |
| GlobalHistogramAllocator::GlobalHistogramAllocator( |
| std::unique_ptr<PersistentMemoryAllocator> memory) |
| : PersistentHistogramAllocator(std::move(memory)), |
| - import_iterator_(this) {} |
| + import_iterator_(this) { |
| + StatisticsRecorder::Initialize(); |
|
bcwhite
2016/09/21 19:35:11
Let's add a comment:
Make sure the StatisticsReco
scottmg
2016/09/21 19:37:56
Done.
|
| +} |
| void GlobalHistogramAllocator::ImportHistogramsToStatisticsRecorder() { |
| // Skip the import if it's the histogram that was last created. Should a |