| Index: base/trace_event/memory_dump_provider.cc
|
| diff --git a/base/trace_event/memory_dump_provider.cc b/base/trace_event/memory_dump_provider.cc
|
| index 9518461dcf77906c8502d187410f53ba23755db0..a2d38897fda52b7e90233aba5a4928ba4234471c 100644
|
| --- a/base/trace_event/memory_dump_provider.cc
|
| +++ b/base/trace_event/memory_dump_provider.cc
|
| @@ -4,7 +4,7 @@
|
|
|
| #include "base/trace_event/memory_dump_provider.h"
|
|
|
| -#include "base/logging.h"
|
| +#include "base/single_thread_task_runner.h"
|
|
|
| namespace base {
|
| namespace trace_event {
|
| @@ -12,15 +12,20 @@ namespace trace_event {
|
| MemoryDumpProvider::MemoryDumpProvider() {
|
| }
|
|
|
| +MemoryDumpProvider::MemoryDumpProvider(
|
| + const scoped_refptr<SingleThreadTaskRunner>& task_runner)
|
| + : task_runner_(task_runner) {
|
| +}
|
| +
|
| MemoryDumpProvider::~MemoryDumpProvider() {
|
| }
|
|
|
| void MemoryDumpProvider::DeclareAllocatorAttribute(
|
| - const MemoryAllocatorDeclaredAttribute& attr) {
|
| - DCHECK_EQ(0u, allocator_attributes_.count(attr.name))
|
| - << "Allocator attribute " << attr.name << " already declared for dumper "
|
| - << GetFriendlyName();
|
| - allocator_attributes_[attr.name] = attr;
|
| + const std::string& allocator_name,
|
| + const std::string& attribute_name,
|
| + const std::string& attribute_type) {
|
| + allocator_attributes_type_info_.Set(
|
| + allocator_name, attribute_name, attribute_type);
|
| }
|
|
|
| } // namespace trace_event
|
|
|