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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorklet.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/webaudio/AudioWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp
index 0ebcf2c82e837a4226d359bbb4ce68e37028b9ce..071b026d96884b6917cad9958067ed825b5fd1ba 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp
@@ -13,9 +13,7 @@
namespace blink {
AudioWorklet* AudioWorklet::create(LocalFrame* frame) {
- AudioWorklet* worklet = new AudioWorklet(frame);
- worklet->suspendIfNeeded();
- return worklet;
+ return new AudioWorklet(frame);
}
AudioWorklet::AudioWorklet(LocalFrame* frame)

Powered by Google App Engine
This is Rietveld 408576698