From 824d389d6bd478947f86213604375b257f4b6bab Mon Sep 17 00:00:00 2001 From: "hidehiko@chromium.org" Date: Wed, 25 Sep 2013 13:00:30 +0000 Subject: Introduce CopyOrMoveOption. This CL adds CopyOrMoveOption to Copy() and Move() methods of FileSystemOperation. This CL doesn't change the user visible behavior. This is preparation to implement "preserve last modified time" on copy (i.e. cp "-p" option on linux). The actual implementation will be done in following CLs. BUG=282107 TEST=Ran unit_tests and content_unittests R=kinaba@chromium.org, kinuko@chromium.org, raymes@chromium.org, vandebo@chromium.org Review URL: https://codereview.chromium.org/24262007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225178 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/browser/fileapi/async_file_test_helper.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webkit/browser/fileapi/async_file_test_helper.cc') diff --git a/webkit/browser/fileapi/async_file_test_helper.cc b/webkit/browser/fileapi/async_file_test_helper.cc index e3343d5..50fd7cd 100644 --- a/webkit/browser/fileapi/async_file_test_helper.cc +++ b/webkit/browser/fileapi/async_file_test_helper.cc @@ -105,7 +105,7 @@ base::PlatformFileError AsyncFileTestHelper::CopyWithProgress( base::PlatformFileError result = base::PLATFORM_FILE_ERROR_FAILED; base::RunLoop run_loop; context->operation_runner()->Copy( - src, dest, progress_callback, + src, dest, FileSystemOperation::OPTION_NONE, progress_callback, AssignAndQuitCallback(&run_loop, &result)); run_loop.Run(); return result; @@ -118,7 +118,8 @@ base::PlatformFileError AsyncFileTestHelper::Move( base::PlatformFileError result = base::PLATFORM_FILE_ERROR_FAILED; base::RunLoop run_loop; context->operation_runner()->Move( - src, dest, AssignAndQuitCallback(&run_loop, &result)); + src, dest, FileSystemOperation::OPTION_NONE, + AssignAndQuitCallback(&run_loop, &result)); run_loop.Run(); return result; } -- cgit v1.1