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 48059a4af4e07c7d2fed94f9ae1d7561b1404647..d026540c47d147dc2e16d6f87e422ed128560208 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp |
@@ -34,6 +34,7 @@ |
#include "core/dom/Document.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/ExecutionContextTask.h" |
+#include "core/dom/TaskRunnerHelper.h" |
#include "core/frame/Settings.h" |
#include "core/html/HTMLMediaElement.h" |
#include "core/inspector/ConsoleMessage.h" |
@@ -615,7 +616,7 @@ void BaseAudioContext::setContextState(AudioContextState newState) { |
// Notify context that state changed |
if (getExecutionContext()) |
getExecutionContext()->postTask( |
- BLINK_FROM_HERE, |
+ TaskType::MediaElementEvent, BLINK_FROM_HERE, |
createSameThreadTask(&BaseAudioContext::notifyStateChange, |
wrapPersistent(this))); |
} |