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

Unified Diff: content/renderer/render_view_impl.cc

Issue 14796018: Cleanup: Deprecate FileSystemCallbackDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 5e3338761bc196838d95f9f63a3652478c97e71f..043b4d1cbdd90689b1a3a6b516e1d662fadd1d59 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -33,7 +33,7 @@
#include "content/common/database_messages.h"
#include "content/common/drag_messages.h"
#include "content/common/fileapi/file_system_dispatcher.h"
-#include "content/common/fileapi/webfilesystem_callback_dispatcher.h"
+#include "content/common/fileapi/webfilesystem_callback_adapters.h"
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
#include "content/common/input_messages.h"
#include "content/common/java_bridge_messages.h"
@@ -4229,7 +4229,9 @@ void RenderViewImpl::openFileSystem(
ChildThread::current()->file_system_dispatcher()->OpenFileSystem(
GURL(origin.toString()), static_cast<fileapi::FileSystemType>(type),
- size, create, new WebFileSystemCallbackDispatcher(callbacks));
+ size, create,
+ base::Bind(&OpenFileSystemCallbackAdapter, callbacks),
+ base::Bind(&FileStatusCallbackAdapter, callbacks));
}
void RenderViewImpl::deleteFileSystem(
@@ -4248,7 +4250,7 @@ void RenderViewImpl::deleteFileSystem(
ChildThread::current()->file_system_dispatcher()->DeleteFileSystem(
GURL(origin.toString()),
static_cast<fileapi::FileSystemType>(type),
- new WebFileSystemCallbackDispatcher(callbacks));
+ base::Bind(&FileStatusCallbackAdapter, callbacks));
}
void RenderViewImpl::queryStorageUsageAndQuota(

Powered by Google App Engine
This is Rietveld 408576698