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

Unified Diff: storage/browser/fileapi/file_system_operation_runner.cc

Issue 565073002: [Blink-FileAPI] Add the notification of update observer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698