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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccess.h

Issue 1876703002: Oilpan: Replace EAGERLY_FINALIZE in EventTarget's hierarchy with pre-finalizers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/modules/webmidi/MIDIAccess.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
index acc04a0fac8bdfdb3ca8389942ab33289b85c013..d26173ba821f8e762bdbf5c9acc1e49ad6c293c0 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
@@ -53,6 +53,7 @@ class MIDIAccess final : public RefCountedGarbageCollectedEventTargetWithInlineD
REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MIDIAccess);
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
+ USING_PRE_FINALIZER(MIDIAccess, dispose);
public:
static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext* executionContext)
{
@@ -99,11 +100,11 @@ public:
// Eager finalization needed to promptly release m_accessor. Otherwise
// its client back reference could end up being unsafely used during
// the lazy sweeping phase.
- EAGERLY_FINALIZE();
DECLARE_VIRTUAL_TRACE();
private:
MIDIAccess(PassOwnPtr<MIDIAccessor>, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>&, ExecutionContext*);
+ void dispose();
OwnPtr<MIDIAccessor> m_accessor;
bool m_sysexEnabled;

Powered by Google App Engine
This is Rietveld 408576698