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

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
« no previous file with comments | « third_party/WebKit/Source/platform/exported/Platform.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4921ba561e3f7e7e50fefc688d7ef15a01a11409..94eee5281ad3db7215b23f8fccc9b29ae51a18d3 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -37,7 +37,6 @@
#include "core/Init.h"
#include "core/animation/AnimationClock.h"
#include "core/dom/Microtask.h"
-#include "core/fetch/WebCacheMemoryDumpProvider.h"
#include "core/frame/Settings.h"
#include "core/page/Page.h"
#include "core/workers/WorkerGlobalScopeProxy.h"
@@ -48,7 +47,6 @@
#include "platform/Logging.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/ThreadSafeFunctional.h"
-#include "platform/fonts/FontCacheMemoryDumpProvider.h"
#include "platform/graphics/ImageDecodingStore.h"
#include "platform/heap/GCTaskRunner.h"
#include "platform/heap/Heap.h"
@@ -112,10 +110,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");
}
}
@@ -186,9 +180,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.
« no previous file with comments | « third_party/WebKit/Source/platform/exported/Platform.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698