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

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, 8 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
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 dfed33dd64a964f78c83fc6e41e98167683c1dd5..76cf3bc62922ca3566b9c5174c097803a536ab32 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;

Powered by Google App Engine
This is Rietveld 408576698