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

Unified Diff: third_party/WebKit/Source/platform/MemoryCoordinator.h

Issue 2251643002: Make MemoryCoordinator garbage collected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/platform/MemoryCoordinator.h
diff --git a/third_party/WebKit/Source/platform/MemoryCoordinator.h b/third_party/WebKit/Source/platform/MemoryCoordinator.h
index 876764f9ce5c070ccd4eaa53c13d89421e984b73..e168482b3734b8254bc015cdb94999df15aaafac 100644
--- a/third_party/WebKit/Source/platform/MemoryCoordinator.h
+++ b/third_party/WebKit/Source/platform/MemoryCoordinator.h
@@ -28,7 +28,7 @@ public:
// MemoryCoordinator listens to some events which could be opportunities
// for reducing memory consumption and notifies its clients.
-class PLATFORM_EXPORT MemoryCoordinator final {
+class PLATFORM_EXPORT MemoryCoordinator final : public GarbageCollected<MemoryCoordinator> {
WTF_MAKE_NONCOPYABLE(MemoryCoordinator);
public:
static MemoryCoordinator& instance();
@@ -46,7 +46,6 @@ public:
private:
MemoryCoordinator();
- ~MemoryCoordinator();
HeapHashSet<WeakMember<MemoryCoordinatorClient>> m_clients;
};

Powered by Google App Engine
This is Rietveld 408576698