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

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

Powered by Google App Engine
This is Rietveld 408576698