| 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 d48fff095dc60bf1f1620f94c7165c094bef85e9..741a3410758bbe45933b45759fd1018b6d386773 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
|
| @@ -33,7 +33,6 @@
|
| #include "core/dom/DOMException.h"
|
| #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"
|
| @@ -614,9 +613,9 @@ void BaseAudioContext::setContextState(AudioContextState newState) {
|
|
|
| // Notify context that state changed
|
| if (getExecutionContext())
|
| - getExecutionContext()->postTask(
|
| - TaskType::MediaElementEvent, BLINK_FROM_HERE,
|
| - createSameThreadTask(&BaseAudioContext::notifyStateChange,
|
| + TaskRunnerHelper::get(TaskType::MediaElementEvent, getExecutionContext())
|
| + ->postTask(BLINK_FROM_HERE,
|
| + WTF::bind(&BaseAudioContext::notifyStateChange,
|
| wrapPersistent(this)));
|
| }
|
|
|
|
|