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

Unified Diff: Source/web/LocalFileSystemClient.cpp

Issue 277353002: Use asynchronized api for file system request. [blink] (3/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update CL according to changes in CL 289793002. Created 6 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: Source/web/LocalFileSystemClient.cpp
diff --git a/Source/web/LocalFileSystemClient.cpp b/Source/web/LocalFileSystemClient.cpp
index a9dc3fd115a9984dae1cf0ab360b4c498acafc43..92519c1520bdb18943bd733007c24d61b9a4065c 100644
--- a/Source/web/LocalFileSystemClient.cpp
+++ b/Source/web/LocalFileSystemClient.cpp
@@ -54,18 +54,6 @@ LocalFileSystemClient::~LocalFileSystemClient()
{
}
-bool LocalFileSystemClient::allowFileSystem(ExecutionContext* context)
-{
- ASSERT(context);
- if (context->isDocument()) {
- Document* document = toDocument(context);
- WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame());
- return !webFrame->permissionClient() || webFrame->permissionClient()->allowFileSystem();
- }
- ASSERT(context->isWorkerGlobalScope());
- return WorkerPermissionClient::from(*toWorkerGlobalScope(context))->allowFileSystem();
-}
-
bool LocalFileSystemClient::requestFileSystemAccessSync(ExecutionContext* context)
{
ASSERT(context);

Powered by Google App Engine
This is Rietveld 408576698