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

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

Issue 1375643002: [tracing] directly use memory-infra from blink -> base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 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;

Powered by Google App Engine
This is Rietveld 408576698