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

Unified Diff: Source/web/WorkerPermissionClient.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: Changes are made. 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/WorkerPermissionClient.cpp
diff --git a/Source/web/WorkerPermissionClient.cpp b/Source/web/WorkerPermissionClient.cpp
index 60efa9a4b4f96f1f67a20bc312ebe825072c9e31..5ebcb2add2abb59c5d9bdf1b1b117c4990003a55 100644
--- a/Source/web/WorkerPermissionClient.cpp
+++ b/Source/web/WorkerPermissionClient.cpp
@@ -57,21 +57,11 @@ bool WorkerPermissionClient::allowDatabase(const WebString& name, const WebStrin
return m_proxy->allowDatabase(name, displayName, estimatedSize);
}
-bool WorkerPermissionClient::allowFileSystem()
+bool WorkerPermissionClient::requestFileSystemAccessSync()
{
if (!m_proxy)
return true;
- return m_proxy->allowFileSystem();
-}
-
-void WorkerPermissionClient::requestFileSystemAccess(const WebPermissionCallbacks& callbacks)
-{
- if (!m_proxy) {
- WebPermissionCallbacks permissionCallbacks(callbacks);
- permissionCallbacks.doAllow();
- return;
- }
- m_proxy->requestFileSystemAccess(callbacks);
+ return m_proxy->requestFileSystemAccessSync();
}
bool WorkerPermissionClient::allowIndexedDB(const WebString& name)

Powered by Google App Engine
This is Rietveld 408576698