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

Unified Diff: Source/web/WorkerPermissionClient.cpp

Issue 289793002: Rename sync and async file system access methods in blink. [blink] (1/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..12584959979dc882c358ef6dab71542c2d8c841e 100644
--- a/Source/web/WorkerPermissionClient.cpp
+++ b/Source/web/WorkerPermissionClient.cpp
@@ -64,14 +64,21 @@ bool WorkerPermissionClient::allowFileSystem()
return m_proxy->allowFileSystem();
}
-void WorkerPermissionClient::requestFileSystemAccess(const WebPermissionCallbacks& callbacks)
+bool WorkerPermissionClient::requestFileSystemAccessSync()
+{
+ if (!m_proxy)
+ return true;
+ return m_proxy->requestFileSystemAccessSync();
+}
+
+void WorkerPermissionClient::requestFileSystemAccessAsync(const WebPermissionCallbacks& callbacks)
{
if (!m_proxy) {
WebPermissionCallbacks permissionCallbacks(callbacks);
permissionCallbacks.doAllow();
return;
}
- m_proxy->requestFileSystemAccess(callbacks);
+ m_proxy->requestFileSystemAccessAsync(callbacks);
}
bool WorkerPermissionClient::allowIndexedDB(const WebString& name)

Powered by Google App Engine
This is Rietveld 408576698