Commit 58701b3e authored by kylechar's avatar kylechar Committed by Commit Bot

Fix assigning NULL to scoped_refptr

Update code where NULL or 0 is assigned to a scoped_refptr to reset it. Just
call reset() instead. If operator=(std::nullptr_t) is added these assignments
become ambiguous.

This CL was uploaded by git cl split.

R=michaeldo@chromium.org

Bug: 1024981
Change-Id: I2d8b8c4b572199f76d40466074343c4fc6885870
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1918151
Auto-Submit: kylechar <kylechar@chromium.org>
Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715467}
parent 4441ed67
...@@ -327,7 +327,7 @@ void URLRequestChromeJob::DataAvailable(base::RefCountedMemory* bytes) { ...@@ -327,7 +327,7 @@ void URLRequestChromeJob::DataAvailable(base::RefCountedMemory* bytes) {
if (pending_buf_.get()) { if (pending_buf_.get()) {
CHECK(pending_buf_->data()); CHECK(pending_buf_->data());
int rv = CompleteRead(pending_buf_.get(), pending_buf_size_); int rv = CompleteRead(pending_buf_.get(), pending_buf_size_);
pending_buf_ = NULL; pending_buf_.reset();
ReadRawDataComplete(rv); ReadRawDataComplete(rv);
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment