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

Unified Diff: content/child/fileapi/webfilesystem_impl.cc

Issue 18282010: Cleanup: split FileSystemDispatcher::Create into CreateFile and CreateDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/child/fileapi/webfilesystem_impl.cc
diff --git a/content/child/fileapi/webfilesystem_impl.cc b/content/child/fileapi/webfilesystem_impl.cc
index e05ded3733d9d8f42be30235e8a2f349f5cc4495..69057aa95ab7305a971c1aad0ff06db49ce5dd6d 100644
--- a/content/child/fileapi/webfilesystem_impl.cc
+++ b/content/child/fileapi/webfilesystem_impl.cc
@@ -82,8 +82,8 @@ void WebFileSystemImpl::createFile(const WebURL& path,
WebFileSystemCallbacks* callbacks) {
FileSystemDispatcher* dispatcher =
ChildThread::current()->file_system_dispatcher();
- dispatcher->Create(
- GURL(path), exclusive, false /* directory */, false /* recursive */,
+ dispatcher->CreateFile(
+ GURL(path), exclusive,
base::Bind(&FileStatusCallbackAdapter, callbacks));
}
@@ -92,8 +92,8 @@ void WebFileSystemImpl::createDirectory(const WebURL& path,
WebFileSystemCallbacks* callbacks) {
FileSystemDispatcher* dispatcher =
ChildThread::current()->file_system_dispatcher();
- dispatcher->Create(
- GURL(path), exclusive, true /* directory */, false /* recursive */,
+ dispatcher->CreateDirectory(
+ GURL(path), exclusive, false /* recursive */,
base::Bind(&FileStatusCallbackAdapter, callbacks));
}
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.cc ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698