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

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 a189b7b321e7ecb2c04a8ab5090e5dc8a9ea60dc..1392b54286e8bc4cb72347ed60c8b9c895c5e2f3 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -4228,7 +4228,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(&WebFileSystemCallbackDispatcher::DidOpenFileSystem,
+ base::Owned(new WebFileSystemCallbackDispatcher(callbacks))));
}
void RenderViewImpl::deleteFileSystem(
@@ -4247,7 +4249,8 @@ void RenderViewImpl::deleteFileSystem(
ChildThread::current()->file_system_dispatcher()->DeleteFileSystem(
GURL(origin.toString()),
static_cast<fileapi::FileSystemType>(type),
- new WebFileSystemCallbackDispatcher(callbacks));
+ base::Bind(&WebFileSystemCallbackDispatcher::DidFinish,
+ base::Owned(new WebFileSystemCallbackDispatcher(callbacks))));
}
void RenderViewImpl::queryStorageUsageAndQuota(

Powered by Google App Engine
This is Rietveld 408576698