Index: base/metrics/histogram_unittest.cc |
diff --git a/base/metrics/histogram_unittest.cc b/base/metrics/histogram_unittest.cc |
index beb6a71ede63c81168a851d099c9afbe8f2918bb..7ef8c8380290806266d6f28cfa2c19e70bcf8a42 100644 |
--- a/base/metrics/histogram_unittest.cc |
+++ b/base/metrics/histogram_unittest.cc |
@@ -37,11 +37,12 @@ class HistogramTest : public testing::TestWithParam<bool> { |
HistogramTest() : use_persistent_histogram_allocator_(GetParam()) {} |
void SetUp() override { |
+ if (use_persistent_histogram_allocator_) |
+ CreatePersistentMemoryAllocator(); |
+ |
// Each test will have a clean state (no Histogram / BucketRanges |
// registered). |
InitializeStatisticsRecorder(); |
- if (use_persistent_histogram_allocator_) |
- CreatePersistentMemoryAllocator(); |
} |
void TearDown() override { |