| Index: storage/browser/fileapi/file_system_operation_runner.cc
|
| diff --git a/storage/browser/fileapi/file_system_operation_runner.cc b/storage/browser/fileapi/file_system_operation_runner.cc
|
| index 58ccb94d67cd4e90c8304a9cbeb48fa88b20da34..46e662a428d516fd58836ce00bc7ec42a61d3ccd 100644
|
| --- a/storage/browser/fileapi/file_system_operation_runner.cc
|
| +++ b/storage/browser/fileapi/file_system_operation_runner.cc
|
| @@ -402,6 +402,7 @@ OperationID FileSystemOperationRunner::CopyInForeignFile(
|
| DidFinish(handle, callback, error);
|
| return handle.id;
|
| }
|
| + PrepareForWrite(handle.id, dest_url);
|
| operation->CopyInForeignFile(
|
| src_local_disk_path, dest_url,
|
| base::Bind(&FileSystemOperationRunner::DidFinish, AsWeakPtr(),
|
| @@ -462,6 +463,8 @@ OperationID FileSystemOperationRunner::CopyFileLocal(
|
| DidFinish(handle, callback, error);
|
| return handle.id;
|
| }
|
| + PrepareForRead(handle.id, src_url);
|
| + PrepareForWrite(handle.id, dest_url);
|
| operation->CopyFileLocal(
|
| src_url, dest_url, option, progress_callback,
|
| base::Bind(&FileSystemOperationRunner::DidFinish, AsWeakPtr(),
|
| @@ -483,6 +486,8 @@ OperationID FileSystemOperationRunner::MoveFileLocal(
|
| DidFinish(handle, callback, error);
|
| return handle.id;
|
| }
|
| + PrepareForWrite(handle.id, src_url);
|
| + PrepareForWrite(handle.id, dest_url);
|
| operation->MoveFileLocal(
|
| src_url, dest_url, option,
|
| base::Bind(&FileSystemOperationRunner::DidFinish, AsWeakPtr(),
|
|
|