Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp |
| diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp |
| index 29a9bce846898a5ce84df48aaa46c0a7f07f7843..04edef246c88b263001690a05ddc2576e0642008 100644 |
| --- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp |
| +++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp |
| @@ -203,10 +203,7 @@ void OfflineAudioDestinationHandler::suspendOfflineRendering() |
| if (context()->getExecutionContext()) { |
| context()->getExecutionContext()->postTask( |
| BLINK_FROM_HERE, |
| - createCrossThreadTask( |
| - &OfflineAudioDestinationHandler::notifySuspend, |
| - this, |
| - context()->currentSampleFrame())); |
| + createCrossThreadTask(&OfflineAudioDestinationHandler::notifySuspend, PassRefPtr<OfflineAudioDestinationHandler>(this), context()->currentSampleFrame())); |
|
hiroshige
2016/05/17 03:46:12
ditto.
|
| } |
| } |
| @@ -217,7 +214,7 @@ void OfflineAudioDestinationHandler::finishOfflineRendering() |
| // The actual rendering has been completed. Notify the context. |
| if (context()->getExecutionContext()) { |
| context()->getExecutionContext()->postTask(BLINK_FROM_HERE, |
| - createCrossThreadTask(&OfflineAudioDestinationHandler::notifyComplete, AllowCrossThreadAccess(this))); |
| + createCrossThreadTask(&OfflineAudioDestinationHandler::notifyComplete, PassRefPtr<OfflineAudioDestinationHandler>(this))); |
| } |
| } |