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

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

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: Created 4 years 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.cpp
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
index 4c5f059ed687ffe3a5d298216a5d4b60f4634f7a..1b2cc5648fd7e778872f45c53451514154c41a33 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
@@ -64,7 +64,7 @@ MIDIAccess::MIDIAccess(
bool sysexEnabled,
const Vector<MIDIAccessInitializer::PortDescriptor>& ports,
ExecutionContext* executionContext)
- : SuspendableObject(executionContext),
+ : ContextLifecycleObserver(executionContext),
m_accessor(std::move(accessor)),
m_sysexEnabled(sysexEnabled),
m_hasPendingActivity(false) {
@@ -233,7 +233,7 @@ DEFINE_TRACE(MIDIAccess) {
visitor->trace(m_inputs);
visitor->trace(m_outputs);
EventTargetWithInlineData::trace(visitor);
- SuspendableObject::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIAccess.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698