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

Unified Diff: webkit/glue/multipart_response_delegate.cc

Issue 2320006: Revert r47599 because it breaks PDF viewing on windows.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 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 | « no previous file | webkit/glue/multipart_response_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/multipart_response_delegate.cc
===================================================================
--- webkit/glue/multipart_response_delegate.cc (revision 48531)
+++ webkit/glue/multipart_response_delegate.cc (working copy)
@@ -149,18 +149,6 @@
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() {
« no previous file with comments | « no previous file | webkit/glue/multipart_response_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698