| Index: base/trace_event/memory_dump_manager.h
|
| diff --git a/base/trace_event/memory_dump_manager.h b/base/trace_event/memory_dump_manager.h
|
| index dfaf3a1fc9e0e16a226a5f833c50d648e4629fde..e18d5617486a66a184c325533503997849853155 100644
|
| --- a/base/trace_event/memory_dump_manager.h
|
| +++ b/base/trace_event/memory_dump_manager.h
|
| @@ -102,6 +102,16 @@ class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver {
|
| disable_periodic_dumps_for_testing_ = true;
|
| }
|
|
|
| + // When true, calling RegisterMemoryDumpProvider is a no-op.
|
| + bool ignore_dumper_registrations_for_testing() const {
|
| + return ignore_dumper_registrations_for_testing_;
|
| + }
|
| +
|
| + void set_ignore_dumper_registrations_for_testing(bool ignore) {
|
| + ignore_dumper_registrations_for_testing_ = ignore;
|
| + }
|
| +
|
| +
|
| private:
|
| friend struct DefaultDeleter<MemoryDumpManager>; // For the testing instance.
|
| friend struct DefaultSingletonTraits<MemoryDumpManager>;
|
| @@ -224,8 +234,8 @@ class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver {
|
| // Name of the allocated_objects dump.
|
| const char* system_allocator_pool_name_;
|
|
|
| - // Skips the auto-registration of the core dumpers during Initialize().
|
| - bool skip_core_dumpers_auto_registration_for_testing_;
|
| + // When true, calling RegisterMemoryDumpProvider is a no-op.
|
| + bool ignore_dumper_registrations_for_testing_;
|
|
|
| // When true, the initialization phase does not start the periodic memory
|
| // dumps.
|
|
|