diff options
author | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 13:00:30 +0000 |
---|---|---|
committer | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 13:00:30 +0000 |
commit | 824d389d6bd478947f86213604375b257f4b6bab (patch) | |
tree | 406764b1f66794566b05e908233956afdd524dd9 /webkit/browser/fileapi/async_file_test_helper.cc | |
parent | 3ea5bd5ee58ac65fad325bde1a27b82a2522b4c7 (diff) | |
download | chromium_src-824d389d6bd478947f86213604375b257f4b6bab.zip chromium_src-824d389d6bd478947f86213604375b257f4b6bab.tar.gz chromium_src-824d389d6bd478947f86213604375b257f4b6bab.tar.bz2 |
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
Diffstat (limited to 'webkit/browser/fileapi/async_file_test_helper.cc')
-rw-r--r-- | webkit/browser/fileapi/async_file_test_helper.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |