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

Unified Diff: net/base/upload_data_stream.cc

Issue 7618039: PPB_URLRequestInfo::AppendFileToBody using sync ipc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 4 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
Index: net/base/upload_data_stream.cc
diff --git a/net/base/upload_data_stream.cc b/net/base/upload_data_stream.cc
index 4a056f43557b6da1f316bbce3661cf47f4cedcb9..33cf1201a97780d9891e70b245fd33b86cd0a55b 100644
--- a/net/base/upload_data_stream.cc
+++ b/net/base/upload_data_stream.cc
@@ -6,6 +6,7 @@
#include "base/file_util.h"
#include "base/logging.h"
+#include "base/threading/thread_restrictions.h"
#include "net/base/file_stream.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
@@ -108,6 +109,8 @@ int UploadDataStream::FillBuf() {
static_cast<int>(std::min(next_element_remaining_,
static_cast<uint64>(size_remaining)));
if (count > 0) {
+ // Temporarily allow until fix: http://crbug.com/72001.
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
michaeln 2011/08/15 18:12:11 Was this just missing before or does something abo
kinuko 2011/08/16 04:00:53 In my testing whenever I try uploading a file with
darin (slow to review) 2011/08/16 17:28:36 Yeah, I'd expect that this is needed. I'm not sur
if (next_element_stream_.get())
rv = next_element_stream_->Read(buf_->data() + buf_len_, count, NULL);
if (rv <= 0) {

Powered by Google App Engine
This is Rietveld 408576698