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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp

Issue 2760323002: OfflineAudioContext: add missing suspendIfNeeded() call. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
index d0acd8dbd40e27c20f1486655552d659e763b0ab..7e187b0adf91ac25c49ade6eeac49f3ab547920f 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
@@ -82,7 +82,10 @@ BaseAudioContext* BaseAudioContext::create(
Document& document,
const AudioContextOptions& contextOptions,
ExceptionState& exceptionState) {
- return AudioContext::create(document, contextOptions, exceptionState);
+ BaseAudioContext* context =
+ AudioContext::create(document, contextOptions, exceptionState);
+ context->suspendIfNeeded();
Raymond Toy 2017/03/21 15:29:48 AudioContext::create calls suspendIfNeeded() too.
sof 2017/03/21 15:44:35 No, not at all - thanks for pointing that out. I
+ return context;
}
// FIXME(dominicc): Devolve these constructors to AudioContext
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698