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

Unified Diff: net/base/upload_data_stream.cc

Issue 10832003: Add const accessors to URLRequest and UploadData. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Forgot to check browser_tests Created 8 years, 5 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 | « net/base/upload_data.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/upload_data_stream.cc
diff --git a/net/base/upload_data_stream.cc b/net/base/upload_data_stream.cc
index 9791a91cfde47f57353adffa9c194a23b01997bd..6c78f95569bbc49f2482c3c7ba3679f919fa2144 100644
--- a/net/base/upload_data_stream.cc
+++ b/net/base/upload_data_stream.cc
@@ -70,7 +70,8 @@ int UploadDataStream::Init() {
}
int UploadDataStream::Read(IOBuffer* buf, int buf_len) {
- std::vector<UploadData::Element>& elements = *upload_data_->elements();
+ std::vector<UploadData::Element>& elements =
+ *upload_data_->elements_mutable();
int bytes_copied = 0;
while (bytes_copied < buf_len && element_index_ < elements.size()) {
« no previous file with comments | « net/base/upload_data.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698