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

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: Apply Kinuko's patch. 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
« no previous file with comments | « Source/web/LocalFileSystemClient.h ('k') | Source/web/WorkerPermissionClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/web/LocalFileSystemClient.h ('k') | Source/web/WorkerPermissionClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698