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

Unified Diff: Source/modules/webmidi/MIDIAccessInitializer.cpp

Issue 885483002: Oilpan: tidy up prefinalizer declarations and a registration. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « Source/modules/webmidi/MIDIAccessInitializer.h ('k') | Source/platform/LifecycleObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccessInitializer.cpp
diff --git a/Source/modules/webmidi/MIDIAccessInitializer.cpp b/Source/modules/webmidi/MIDIAccessInitializer.cpp
index 300f8ebd042bb0bf681999647c415a2f01291c9b..36d4b00cfd07e27b9eaeafeb009bca442a3078a4 100644
--- a/Source/modules/webmidi/MIDIAccessInitializer.cpp
+++ b/Source/modules/webmidi/MIDIAccessInitializer.cpp
@@ -21,6 +21,9 @@ MIDIAccessInitializer::MIDIAccessInitializer(ScriptState* scriptState, const MID
: ScriptPromiseResolver(scriptState)
, m_requestSysex(false)
{
+#if ENABLE(OILPAN)
+ ThreadState::current()->registerPreFinalizer(*this);
+#endif
if (options.hasSysex())
m_requestSysex = options.sysex();
}
« no previous file with comments | « Source/modules/webmidi/MIDIAccessInitializer.h ('k') | Source/platform/LifecycleObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698