Chromium Code Reviews| 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()) |
|
bashi
2016/05/13 09:01:58
Move this into Platform::init(). Otherwise includi
|
| - 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()); |