| Index: third_party/WebKit/Source/core/Init.cpp
|
| diff --git a/third_party/WebKit/Source/core/Init.cpp b/third_party/WebKit/Source/core/Init.cpp
|
| index ccfa175811258948bbd5b8f0ed7b1dfc1928c94a..4e5819622548649a7511021862a9fab0a4dfc12c 100644
|
| --- a/third_party/WebKit/Source/core/Init.cpp
|
| +++ b/third_party/WebKit/Source/core/Init.cpp
|
| @@ -49,6 +49,7 @@
|
| #include "core/dom/StyleChangeReason.h"
|
| #include "core/events/EventFactory.h"
|
| #include "core/fetch/FetchInitiatorTypeNames.h"
|
| +#include "core/fetch/WebCacheMemoryDumpProvider.h"
|
| #include "core/html/canvas/CanvasRenderingContextFactory.h"
|
| #include "core/html/parser/HTMLParserThread.h"
|
| #include "core/workers/WorkerThread.h"
|
| @@ -137,6 +138,8 @@ void CoreInitializer::init()
|
|
|
| StringImpl::freezeStaticStrings();
|
|
|
| + Platform::current()->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instance(), "MemoryCache");
|
| +
|
| // Creates HTMLParserThread::shared and ScriptStreamerThread::shared, but
|
| // does not start the threads.
|
| HTMLParserThread::init();
|
| @@ -154,6 +157,8 @@ void CoreInitializer::shutdown()
|
| ASSERT(Platform::current());
|
| HTMLParserThread::shutdown();
|
|
|
| + Platform::current()->unregisterMemoryDumpProvider(WebCacheMemoryDumpProvider::instance());
|
| +
|
| WorkerThread::terminateAndWaitForAllWorkers();
|
| }
|
|
|
|
|