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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 1977783002: BlinkGCMemoryDumpProvider should inherit from MemoryDumpProvider directly (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
Index: third_party/WebKit/Source/platform/heap/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 4714e246fea8c1bd1c8bfcf2c62380dd87b4bfed..346f33227e00d53297554272e1b9652f9c46cb2f 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -114,9 +114,6 @@ void ProcessHeap::init()
s_isLowEndDevice = base::SysInfo::IsLowEndDevice();
GCInfoTable::init();
-
- if (Platform::current() && Platform::current()->currentThread())
- Platform::current()->registerMemoryDumpProvider(BlinkGCMemoryDumpProvider::instance(), "BlinkGC");
}
void ProcessHeap::resetHeapCounters()
@@ -129,9 +126,6 @@ void ProcessHeap::shutdown()
{
ASSERT(!s_shutdownComplete);
- if (Platform::current() && Platform::current()->currentThread())
- Platform::current()->unregisterMemoryDumpProvider(BlinkGCMemoryDumpProvider::instance());
-
{
// The main thread must be the last thread that gets detached.
MutexLocker locker(ThreadHeap::allHeapsMutex());

Powered by Google App Engine
This is Rietveld 408576698