| Index: base/metrics/persistent_histogram_allocator.cc
|
| diff --git a/base/metrics/persistent_histogram_allocator.cc b/base/metrics/persistent_histogram_allocator.cc
|
| index 6cf22de5d3302af4befaa2adea91cbbd8484026e..b398cd84c5ce18a967768e175e5bdf3b12cd4cac 100644
|
| --- a/base/metrics/persistent_histogram_allocator.cc
|
| +++ b/base/metrics/persistent_histogram_allocator.cc
|
| @@ -403,7 +403,11 @@ std::unique_ptr<HistogramBase> PersistentHistogramAllocator::AllocateHistogram(
|
| result = CREATE_HISTOGRAM_ALLOCATOR_ERROR;
|
| }
|
| RecordCreateHistogramResult(result);
|
| - NOTREACHED() << "error=" << result;
|
| +
|
| + // Crash for failures caused by internal bugs but not "full" which is
|
| + // dependent on outside code.
|
| + if (result != CREATE_HISTOGRAM_ALLOCATOR_FULL)
|
| + NOTREACHED() << memory_allocator_->Name() << ", error=" << result;
|
|
|
| return nullptr;
|
| }
|
|
|