summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi
diff options
context:
space:
mode:
authoradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 21:57:51 +0000
committeradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 21:57:51 +0000
commit7d01ba27a7511698989bf018c5d8979d5942b13b (patch)
tree12e789e0e964dcd9088603679f22d4d4ed3be169 /webkit/fileapi
parent776f4d5929bcbed04e75ff1390e4e930a1980c71 (diff)
downloadchromium_src-7d01ba27a7511698989bf018c5d8979d5942b13b.zip
chromium_src-7d01ba27a7511698989bf018c5d8979d5942b13b.tar.gz
chromium_src-7d01ba27a7511698989bf018c5d8979d5942b13b.tar.bz2
Re-enable FileWriterSync ui_tests by adding a ScopedAllowIO to BlobURLRequestJob.
BUG=75548 TEST=ui_tests Review URL: http://codereview.chromium.org/6666001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi')
-rw-r--r--webkit/fileapi/file_writer_delegate.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/fileapi/file_writer_delegate.cc b/webkit/fileapi/file_writer_delegate.cc
index bb6becf..49a4ecd 100644
--- a/webkit/fileapi/file_writer_delegate.cc
+++ b/webkit/fileapi/file_writer_delegate.cc
@@ -5,6 +5,7 @@
#include "webkit/fileapi/file_writer_delegate.h"
#include "base/message_loop.h"
+#include "base/threading/thread_restrictions.h"
#include "net/base/net_errors.h"
#include "webkit/fileapi/file_system_operation.h"
@@ -67,6 +68,9 @@ void FileWriterDelegate::OnSSLCertificateError(
void FileWriterDelegate::OnResponseStarted(net::URLRequest* request) {
DCHECK_EQ(request_, request);
+ // file_stream_->Seek() blocks the IO thread.
+ // See http://crbug.com/75548.
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
if (!request->status().is_success()) {
OnError(base::PLATFORM_FILE_ERROR_FAILED);
return;
@@ -164,4 +168,3 @@ void FileWriterDelegate::OnProgress(int bytes_read, bool done) {
}
} // namespace fileapi
-