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

Unified Diff: Source/modules/filesystem/LocalFileSystem.cpp

Issue 705003002: Change the return type of WTF::bind() to |OwnPtr<Function>| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments from yhirano Created 6 years, 1 month 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/modules/filesystem/LocalFileSystem.h ('k') | Source/platform/PermissionCallbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/LocalFileSystem.cpp
diff --git a/Source/modules/filesystem/LocalFileSystem.cpp b/Source/modules/filesystem/LocalFileSystem.cpp
index 3383c7af5e9b36609281a6ff9d13beff7edfdcea..e9887a394c96ff6f5c5ec82802c3a520b1815ad2 100644
--- a/Source/modules/filesystem/LocalFileSystem.cpp
+++ b/Source/modules/filesystem/LocalFileSystem.cpp
@@ -122,18 +122,18 @@ WebFileSystem* LocalFileSystem::fileSystem() const
return Platform::current()->fileSystem();
}
-void LocalFileSystem::requestFileSystemAccessInternal(ExecutionContext* context, const Closure& allowed, const Closure& denied)
+void LocalFileSystem::requestFileSystemAccessInternal(ExecutionContext* context, PassOwnPtr<Closure> allowed, PassOwnPtr<Closure> denied)
{
if (!client()) {
- denied();
+ (*denied)();
return;
}
if (!context->isDocument()) {
if (!client()->requestFileSystemAccessSync(context)) {
- denied();
+ (*denied)();
return;
}
- allowed();
+ (*allowed)();
return;
}
client()->requestFileSystemAccessAsync(context, PermissionCallbacks::create(allowed, denied));
« no previous file with comments | « Source/modules/filesystem/LocalFileSystem.h ('k') | Source/platform/PermissionCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698