Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Unified Diff: third_party/WebKit/Source/platform/exported/Platform.cpp

Issue 1910253003: PartitionAllocMemoryDumpProvider can directly inherit from MemoryDumpProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 252e3d0b3958f88f19d62b7121ca5ec70baba798..3ca9743cf3d0a505f1d6fc4e986d436e34da88d4 100644
--- a/third_party/WebKit/Source/platform/exported/Platform.cpp
+++ b/third_party/WebKit/Source/platform/exported/Platform.cpp
@@ -99,7 +99,7 @@ void Platform::initialize(Platform* platform)
if (s_platform->m_mainThread) {
ASSERT(!s_gcTaskRunner);
s_gcTaskRunner = new GCTaskRunner(s_platform->m_mainThread);
- s_platform->registerMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance(), "PartitionAlloc");
+ base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(PartitionAllocMemoryDumpProvider::instance(), "PartitionAlloc", base::ThreadTaskRunnerHandle::Get());
s_platform->registerMemoryDumpProvider(FontCacheMemoryDumpProvider::instance(), "FontCaches");
}
@@ -113,7 +113,7 @@ void Platform::shutdown()
if (s_platform->m_mainThread) {
s_platform->unregisterMemoryDumpProvider(FontCacheMemoryDumpProvider::instance());
- s_platform->unregisterMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance());
+ base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(PartitionAllocMemoryDumpProvider::instance());
ASSERT(s_gcTaskRunner);
delete s_gcTaskRunner;
s_gcTaskRunner = nullptr;
« no previous file with comments | « third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698