| 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 0f352ed7797bddd3d5fd53729cee225e47d1fe2b..e7ac8a92a7090d5e81b0f7bb499bea83fcf1a152 100644
|
| --- a/base/trace_event/memory_dump_manager.h
|
| +++ b/base/trace_event/memory_dump_manager.h
|
| @@ -104,6 +104,15 @@ class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver {
|
| return kSystemAllocatorPoolName;
|
| };
|
|
|
| + // When true, calling |RegisterMemoryDumpProvider| is a no-op.
|
| + bool dumper_registrations_ignored_for_testing() const {
|
| + return dumper_registrations_ignored_for_testing_;
|
| + }
|
| +
|
| + void set_dumper_registrations_ignored_for_testing(bool ignore) {
|
| + dumper_registrations_ignored_for_testing_ = ignore;
|
| + }
|
| +
|
| private:
|
| friend struct DefaultDeleter<MemoryDumpManager>; // For the testing instance.
|
| friend struct DefaultSingletonTraits<MemoryDumpManager>;
|
| @@ -224,8 +233,8 @@ class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver {
|
| // expected to be valid only when tracing is enabled.
|
| uint64 tracing_process_id_;
|
|
|
| - // 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 dumper_registrations_ignored_for_testing_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(MemoryDumpManager);
|
| };
|
|
|