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

Unified Diff: webkit/glue/webfileutilities_impl.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_writer_delegate.cc ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webfileutilities_impl.cc
diff --git a/webkit/glue/webfileutilities_impl.cc b/webkit/glue/webfileutilities_impl.cc
index b7928fd7db5112478c4589f27b80ac8a00ce5c99..a1110e690b99edf228aa85691aa474053a2f9f37 100644
--- a/webkit/glue/webfileutilities_impl.cc
+++ b/webkit/glue/webfileutilities_impl.cc
@@ -128,7 +128,7 @@ long long WebFileUtilitiesImpl::seekFile(base::PlatformFile handle,
if (handle == base::kInvalidPlatformFileValue)
return -1;
net::FileStream file_stream(handle, 0, NULL);
- return file_stream.Seek(static_cast<net::Whence>(origin), offset);
+ return file_stream.SeekSync(static_cast<net::Whence>(origin), offset);
}
bool WebFileUtilitiesImpl::truncateFile(base::PlatformFile handle,
« no previous file with comments | « webkit/fileapi/file_writer_delegate.cc ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698