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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIInput.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/MIDIInput.cpp
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp
index ba94909889ab25f7812fafad1fe28754c6a59f5d..46a080c5c137b9f3ecfe561109c20621745dea9f 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp
@@ -45,10 +45,7 @@ MIDIInput* MIDIInput::create(MIDIAccess* access,
const String& version,
PortState state) {
DCHECK(access);
- MIDIInput* input =
- new MIDIInput(access, id, manufacturer, name, version, state);
- input->suspendIfNeeded();
- return input;
+ return new MIDIInput(access, id, manufacturer, name, version, state);
}
MIDIInput::MIDIInput(MIDIAccess* access,
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp ('k') | third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698