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

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

Issue 1766143002: Apply AllowCrossThreadAccess() in the callers of createCrossThreadTask() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1549143002
Patch Set: Rebase Created 4 years, 7 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
Index: third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp b/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp
index 6f26b7d3d951a565623fab7b6ed7e101915fbb99..4a1c49d8c4e3fcb05fbea891de2e779a92ba55da 100644
--- a/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp
@@ -165,7 +165,7 @@ void ScriptProcessorHandler::process(size_t framesToProcess)
// Fire the event on the main thread with the appropriate buffer
// index.
context()->getExecutionContext()->postTask(BLINK_FROM_HERE,
- createCrossThreadTask(&ScriptProcessorHandler::fireProcessEvent, this, m_doubleBufferIndex));
+ createCrossThreadTask(&ScriptProcessorHandler::fireProcessEvent, AllowCrossThreadAccess(this), m_doubleBufferIndex));
}
swapBuffers();

Powered by Google App Engine
This is Rietveld 408576698