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

Unified Diff: webkit/fileapi/file_system_file_util_proxy.cc

Issue 9616033: Merge CrossFileUtilHelper to FileUtilHelper as Copy() and Move(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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
« no previous file with comments | « webkit/fileapi/cross_file_util_helper.cc ('k') | webkit/fileapi/file_system_file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_file_util_proxy.cc
diff --git a/webkit/fileapi/file_system_file_util_proxy.cc b/webkit/fileapi/file_system_file_util_proxy.cc
index 52b0fd54e0d8fa4c90f0ce2a1bb72a3fa17c4d99..6301d6ca640f1ad75ca5366c1c0f3f2ae4b2889e 100644
--- a/webkit/fileapi/file_system_file_util_proxy.cc
+++ b/webkit/fileapi/file_system_file_util_proxy.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop_proxy.h"
-#include "webkit/fileapi/cross_file_util_helper.h"
#include "webkit/fileapi/file_system_file_util.h"
#include "webkit/fileapi/file_system_operation_context.h"
#include "webkit/fileapi/file_util_helper.h"
@@ -131,14 +130,10 @@ bool FileSystemFileUtilProxy::Copy(
const FileSystemPath& src_path,
const FileSystemPath& dest_path,
const StatusCallback& callback) {
- CrossFileUtilHelper* helper =
- new CrossFileUtilHelper(
- context, src_util, dest_util, src_path, dest_path,
- CrossFileUtilHelper::OPERATION_COPY);
-
return base::FileUtilProxy::RelayFileTask(
message_loop_proxy, FROM_HERE,
- Bind(&CrossFileUtilHelper::DoWork, Owned(helper)),
+ Bind(&FileUtilHelper::Copy,
+ context, src_util, dest_util, src_path, dest_path),
callback);
}
@@ -151,13 +146,10 @@ bool FileSystemFileUtilProxy::Move(
const FileSystemPath& src_path,
const FileSystemPath& dest_path,
const StatusCallback& callback) {
- CrossFileUtilHelper* helper =
- new CrossFileUtilHelper(
- context, src_util, dest_util, src_path, dest_path,
- CrossFileUtilHelper::OPERATION_MOVE);
return base::FileUtilProxy::RelayFileTask(
message_loop_proxy, FROM_HERE,
- Bind(&CrossFileUtilHelper::DoWork, Owned(helper)),
+ Bind(&FileUtilHelper::Move,
+ context, src_util, dest_util, src_path, dest_path),
callback);
}
« no previous file with comments | « webkit/fileapi/cross_file_util_helper.cc ('k') | webkit/fileapi/file_system_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698