diff options
author | mal@chromium.org <mal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-29 02:33:01 +0000 |
---|---|---|
committer | mal@chromium.org <mal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-29 02:33:01 +0000 |
commit | acc5bd317033d426c190049c0b274643695bf58c (patch) | |
tree | 383e74176f2e4907e5ec91cf682d91ad2977d800 /webkit/glue/multipart_response_delegate.cc | |
parent | 667eb6236de3dcd394d07e6bdf28ee7fa2f63ca5 (diff) | |
download | chromium_src-acc5bd317033d426c190049c0b274643695bf58c.zip chromium_src-acc5bd317033d426c190049c0b274643695bf58c.tar.gz chromium_src-acc5bd317033d426c190049c0b274643695bf58c.tar.bz2 |
Revert r47599 because it breaks PDF viewing on windows.
BUG= 44595, 30880
TEST= http://www.ich.org/LOB/media/MEDIA3917.pdf doesn't hang the browser.
TBR= tony
Review URL: http://codereview.chromium.org/2320006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/multipart_response_delegate.cc')
-rw-r--r-- | webkit/glue/multipart_response_delegate.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/webkit/glue/multipart_response_delegate.cc b/webkit/glue/multipart_response_delegate.cc index 1b68064..8de6469 100644 --- a/webkit/glue/multipart_response_delegate.cc +++ b/webkit/glue/multipart_response_delegate.cc @@ -149,18 +149,6 @@ void MultipartResponseDelegate::OnReceivedData(const char* data, break; } } - - // At this point, we should send over any data we have, but keep enough data - // buffered to handle a boundary that may have been truncated. - if (!processing_headers_ && data_.length() > boundary_.length()) { - // If the last character is a new line character, go ahead and just send - // everything we have buffered. This matches an optimization in Gecko. - int send_length = data_.length() - boundary_.length(); - if (data_[data_.length() - 1] == '\n') - send_length = data_.length(); - client_->didReceiveData(loader_, data_.data(), send_length); - data_ = data_.substr(send_length); - } } void MultipartResponseDelegate::OnCompletedRequest() { |