| Index: content/browser/tracing/background_tracing_manager_impl.cc
|
| diff --git a/content/browser/tracing/background_tracing_manager_impl.cc b/content/browser/tracing/background_tracing_manager_impl.cc
|
| index c5812f959222d2bee9c54a6955616471d0a5e320..14746163c2cd28098ffb8de72a0e58835f278103 100644
|
| --- a/content/browser/tracing/background_tracing_manager_impl.cc
|
| +++ b/content/browser/tracing/background_tracing_manager_impl.cc
|
| @@ -52,6 +52,10 @@
|
| // Tracing enabled callback for BENCHMARK_MEMORY_LIGHT category preset.
|
| void BenchmarkMemoryLight_TracingEnabledCallback() {
|
| auto dump_manager = base::trace_event::MemoryDumpManager::GetInstance();
|
| + // Safety check to make sure the memory-infra restrictions are properly
|
| + // propagated via TraceConfig
|
| + CHECK(!dump_manager->IsDumpModeAllowed(
|
| + base::trace_event::MemoryDumpLevelOfDetail::DETAILED));
|
| dump_manager->RequestGlobalDump(
|
| base::trace_event::MemoryDumpType::EXPLICITLY_TRIGGERED,
|
| base::trace_event::MemoryDumpLevelOfDetail::BACKGROUND);
|
|
|