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

Unified Diff: third_party/WebKit/Source/web/WebKit.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
Index: third_party/WebKit/Source/web/WebKit.cpp
diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
index 3fa474fa4fd4cc62daa165da2db647021f935768..c47d5fdfa7e03bc4baed74bfd65d9c37427c2ee1 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -116,10 +116,6 @@ void initialize(Platform* platform)
ASSERT(!s_endOfTaskRunner);
s_endOfTaskRunner = new EndOfTaskRunner;
currentThread->addTaskObserver(s_endOfTaskRunner);
-
- // Register web cache dump provider for tracing.
- platform->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instance(), "MemoryCache");
- platform->registerMemoryDumpProvider(FontCacheMemoryDumpProvider::instance(), "FontCaches");
}
}
@@ -190,9 +186,6 @@ void shutdown()
// currentThread() is null if we are running on a thread without a message loop.
if (Platform::current()->currentThread()) {
- Platform::current()->unregisterMemoryDumpProvider(WebCacheMemoryDumpProvider::instance());
- Platform::current()->unregisterMemoryDumpProvider(FontCacheMemoryDumpProvider::instance());
-
// We don't need to (cannot) remove s_endOfTaskRunner from the current
// message loop, because the message loop is already destructed before
// the shutdown() is called.

Powered by Google App Engine
This is Rietveld 408576698