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

Unified Diff: webkit/chromeos/fileapi/remote_file_system_operation.cc

Issue 10956064: Send OnModifyFile Notification when File Write Finishes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Kinuko Review #2 Created 8 years, 3 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/chromeos/fileapi/remote_file_system_operation.h ('k') | webkit/fileapi/file_writer_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c7dfce6e2def258baa3b278d533625cb115a0f25..218b5b747277393ff3a583278826478cc5c94442 100644
--- a/webkit/chromeos/fileapi/remote_file_system_operation.cc
+++ b/webkit/chromeos/fileapi/remote_file_system_operation.cc
@@ -271,13 +271,15 @@ void RemoteFileSystemOperation::DidReadDirectory(
void RemoteFileSystemOperation::DidWrite(
base::PlatformFileError rv,
int64 bytes,
- bool complete) {
+ FileWriterDelegate::WriteProgressStatus write_status) {
if (write_callback_.is_null()) {
// If cancelled, callback is already invoked and set to null in Cancel().
// We must not call it twice. Just shut down this operation object.
delete this;
return;
}
+
+ bool complete = (write_status != FileWriterDelegate::SUCCESS_IO_PENDING);
write_callback_.Run(rv, bytes, complete);
if (rv != base::PLATFORM_FILE_OK || complete) {
// Other Did*'s doesn't have "delete this", because it is automatic since
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_system_operation.h ('k') | webkit/fileapi/file_writer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698