| Index: third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp
|
| diff --git a/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp b/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp
|
| index 4f66b32a333306858b02d299ade2c7664906d82a..ce734f44450c8f80bd74d426ae56e4a5dbaafd6f 100644
|
| --- a/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp
|
| +++ b/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp
|
| @@ -117,7 +117,13 @@ bool DOMFileSystem::hasPendingActivity() const
|
|
|
| void DOMFileSystem::reportError(ErrorCallback* errorCallback, FileError* fileError)
|
| {
|
| - scheduleCallback(errorCallback, fileError);
|
| + reportError(getExecutionContext(), errorCallback, fileError);
|
| +}
|
| +
|
| +void DOMFileSystem::reportError(ExecutionContext* executionContext, ErrorCallback* errorCallback, FileError* fileError)
|
| +{
|
| + if (errorCallback)
|
| + scheduleCallback(executionContext, createSameThreadTask(&ErrorCallback::handleEvent, wrapPersistent(errorCallback), wrapPersistent(fileError)));
|
| }
|
|
|
| namespace {
|
|
|