| Index: Source/web/WorkerFileSystemClient.cpp
|
| diff --git a/Source/web/WorkerFileSystemClient.cpp b/Source/web/WorkerFileSystemClient.cpp
|
| index 0ab0c7de86b685eaa0924600a1886e672027fdec..6154df12193df711612fdb68e94ef937deaccd3e 100644
|
| --- a/Source/web/WorkerFileSystemClient.cpp
|
| +++ b/Source/web/WorkerFileSystemClient.cpp
|
| @@ -33,6 +33,7 @@
|
|
|
| #include "WebWorkerBase.h"
|
| #include "WorkerAllowMainThreadBridgeBase.h"
|
| +#include "WorkerPermissionClient.h"
|
| #include "core/dom/ExecutionContext.h"
|
| #include "core/platform/AsyncFileSystemCallbacks.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| @@ -88,6 +89,12 @@ WorkerFileSystemClient::~WorkerFileSystemClient()
|
| bool WorkerFileSystemClient::allowFileSystem(ExecutionContext* context)
|
| {
|
| WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(context);
|
| + WorkerPermissionClient* permissionClient = WorkerPermissionClient::from(workerGlobalScope);
|
| + if (permissionClient->proxy())
|
| + return permissionClient->allowFileSystem();
|
| +
|
| + // FIXME: Deprecate this bridge code when PermissionClientProxy is
|
| + // implemented by the embedder.
|
| WebCore::WorkerThread* workerThread = workerGlobalScope->thread();
|
| WorkerRunLoop& runLoop = workerThread->runLoop();
|
| WebCore::WorkerLoaderProxy* workerLoaderProxy = &workerThread->workerLoaderProxy();
|
|
|