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

Unified Diff: webkit/fileapi/file_writer_delegate.cc

Issue 9949011: Make FileStream::Seek async and add FileStream::SeekSync for sync operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 8 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/fileapi/file_system_url_request_job.cc ('k') | webkit/glue/webfileutilities_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_writer_delegate.cc
diff --git a/webkit/fileapi/file_writer_delegate.cc b/webkit/fileapi/file_writer_delegate.cc
index d95e00be3ec1108307db8ec2204d79a80d355e31..a5da1c641e20d8a589f040062dcc9c2c030a3d1d 100644
--- a/webkit/fileapi/file_writer_delegate.cc
+++ b/webkit/fileapi/file_writer_delegate.cc
@@ -180,7 +180,7 @@ void FileWriterDelegate::OnResponseStarted(net::URLRequest* request) {
OnError(base::PLATFORM_FILE_ERROR_FAILED);
return;
}
- int64 error = file_stream_->Seek(net::FROM_BEGIN, offset_);
+ int64 error = file_stream_->SeekSync(net::FROM_BEGIN, offset_);
if (error != offset_) {
OnError(base::PLATFORM_FILE_ERROR_FAILED);
return;
« no previous file with comments | « webkit/fileapi/file_system_url_request_job.cc ('k') | webkit/glue/webfileutilities_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698