| Index: third_party/WebKit/Source/platform/exported/Platform.cpp
|
| diff --git a/third_party/WebKit/Source/platform/exported/Platform.cpp b/third_party/WebKit/Source/platform/exported/Platform.cpp
|
| index 2b2ccb844556789f76c7a95a312bf5460fffa513..13b7c4b83dd8dbc1a75a17881977056202fa57c3 100644
|
| --- a/third_party/WebKit/Source/platform/exported/Platform.cpp
|
| +++ b/third_party/WebKit/Source/platform/exported/Platform.cpp
|
| @@ -29,6 +29,7 @@
|
| */
|
|
|
| #include "config.h"
|
| +#include "base/trace_event/memory_dump_manager.h"
|
| #include "platform/PartitionAllocMemoryDumpProvider.h"
|
| #include "public/platform/Platform.h"
|
|
|
| @@ -49,13 +50,13 @@ void Platform::initialize(Platform* platform)
|
|
|
| // TODO(ssid): remove this check after fixing crbug.com/486782.
|
| if (s_platform && s_platform->m_mainThread)
|
| - s_platform->registerMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance());
|
| + base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(PartitionAllocMemoryDumpProvider::instance());
|
| }
|
|
|
| void Platform::shutdown()
|
| {
|
| if (s_platform->m_mainThread)
|
| - s_platform->unregisterMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance());
|
| + base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(PartitionAllocMemoryDumpProvider::instance());
|
|
|
| if (s_platform)
|
| s_platform->m_mainThread = 0;
|
|
|