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

Unified Diff: ios/net/crn_http_protocol_handler.mm

Issue 2262063002: Adjust callers and networking delegates in ios/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: rebased Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/crn_http_protocol_handler.mm
diff --git a/ios/net/crn_http_protocol_handler.mm b/ios/net/crn_http_protocol_handler.mm
index ac23ad6c5cba6e3a152780f26249e498a0a8dfdd..9c65ef66df562a134192f1572e1a4fee82fb99de 100644
--- a/ios/net/crn_http_protocol_handler.mm
+++ b/ios/net/crn_http_protocol_handler.mm
@@ -540,7 +540,7 @@ void HttpProtocolHandlerCore::OnReadCompleted(URLRequest* request,
[data increaseLengthBy:bytes_read];
memcpy(reinterpret_cast<char*>([data mutableBytes]) + data_length,
buffer_->data(), bytes_read);
- request->Read(buffer_.get(), kIOBufferSize, &bytes_read);
+ bytes_read = request->Read(buffer_.get(), kIOBufferSize);
}
if (tracker_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698