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

Unified Diff: mojo/services/network/url_loader_impl.cc

Issue 502573006: Remove implicit conversions from scoped_refptr to T* in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: mojo/services/network/url_loader_impl.cc
diff --git a/mojo/services/network/url_loader_impl.cc b/mojo/services/network/url_loader_impl.cc
index bbdfcb22c0a3b75465c9f7943f9f25fa60346125..b5cbd0f9c371fc931c61051ffba18feb59450264 100644
--- a/mojo/services/network/url_loader_impl.cc
+++ b/mojo/services/network/url_loader_impl.cc
@@ -327,7 +327,7 @@ void URLLoaderImpl::WaitToReadMore() {
}
void URLLoaderImpl::ReadMore() {
- DCHECK(!pending_write_);
+ DCHECK(!pending_write_.get());
pending_write_ = new PendingWriteToDataPipe(response_body_stream_.Pass());
@@ -347,10 +347,11 @@ void URLLoaderImpl::ReadMore() {
}
CHECK_GT(static_cast<uint32_t>(std::numeric_limits<int>::max()), num_bytes);
- scoped_refptr<net::IOBuffer> buf = new DependentIOBuffer(pending_write_);
+ scoped_refptr<net::IOBuffer> buf =
+ new DependentIOBuffer(pending_write_.get());
int bytes_read;
- url_request_->Read(buf, static_cast<int>(num_bytes), &bytes_read);
+ url_request_->Read(buf.get(), static_cast<int>(num_bytes), &bytes_read);
// Drop our reference to the buffer.
buf = NULL;

Powered by Google App Engine
This is Rietveld 408576698