Index: webkit/chromeos/fileapi/remote_file_system_operation.cc |
diff --git a/webkit/chromeos/fileapi/remote_file_system_operation.cc b/webkit/chromeos/fileapi/remote_file_system_operation.cc |
index 29826078f070859b70420e67a4315ca4f7f672e8..3838921e7cda29de3c51d5780d401c4d19a72679 100644 |
--- a/webkit/chromeos/fileapi/remote_file_system_operation.cc |
+++ b/webkit/chromeos/fileapi/remote_file_system_operation.cc |
@@ -151,16 +151,6 @@ void RemoteFileSystemOperation::OpenFile(const GURL& path, |
int file_flags, |
base::ProcessHandle peer_handle, |
const OpenFileCallback& callback) { |
- // TODO(zelidrag): Implement file write operations. |
- if ((file_flags & base::PLATFORM_FILE_CREATE) || |
- (file_flags & base::PLATFORM_FILE_WRITE) || |
- (file_flags & base::PLATFORM_FILE_EXCLUSIVE_WRITE) || |
- (file_flags & base::PLATFORM_FILE_CREATE_ALWAYS) || |
- (file_flags & base::PLATFORM_FILE_OPEN_TRUNCATED) || |
- (file_flags & base::PLATFORM_FILE_DELETE_ON_CLOSE)) { |
- NOTIMPLEMENTED() << "File write operations not supported " << path.spec(); |
- return; |
- } |
DCHECK(SetPendingOperationType(kOperationOpenFile)); |
remote_proxy_->OpenFile( |
path, |
@@ -170,6 +160,12 @@ void RemoteFileSystemOperation::OpenFile(const GURL& path, |
base::Owned(this), callback)); |
} |
+void RemoteFileSystemOperation::NotifyFileClosed( |
+ const GURL& path, const StatusCallback& callback) { |
+ DCHECK(SetPendingOperationType(kOperationFileClosed)); |
+ remote_proxy_->NotifyFileClosed(path, callback); |
+} |
+ |
fileapi::FileSystemOperation* |
RemoteFileSystemOperation::AsFileSystemOperation() { |
NOTIMPLEMENTED(); |