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

Unified Diff: third_party/WebKit/Source/core/Init.cpp

Issue 1773273004: Move code to register/unregister memory dump provider from blink::initialize/shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/Platform.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/Platform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698