Index: base/trace_event/memory_dump_manager.cc |
diff --git a/base/trace_event/memory_dump_manager.cc b/base/trace_event/memory_dump_manager.cc |
index 5a54a773c5e4eb8b7eb816000855e23dc0374780..5f4ec841edae5695c4ae9562c70c153a2ba3efc3 100644 |
--- a/base/trace_event/memory_dump_manager.cc |
+++ b/base/trace_event/memory_dump_manager.cc |
@@ -483,6 +483,17 @@ void MemoryDumpManager::RequestGlobalDump( |
RequestGlobalDump(dump_type, level_of_detail, MemoryDumpCallback()); |
} |
+bool MemoryDumpManager::IsDumpProviderRegisteredForTesting( |
+ MemoryDumpProvider* provider) { |
+ AutoLock lock(lock_); |
+ |
+ for (const auto& info : dump_providers_) { |
+ if (info->dump_provider == provider) |
+ return true; |
+ } |
+ return false; |
+} |
+ |
void MemoryDumpManager::CreateProcessDump(const MemoryDumpRequestArgs& args, |
const MemoryDumpCallback& callback) { |
TRACE_EVENT_NESTABLE_ASYNC_BEGIN0(kTraceCategory, "ProcessMemoryDump", |