Index: content/browser/loader/stream_resource_handler.cc |
diff --git a/content/browser/loader/stream_resource_handler.cc b/content/browser/loader/stream_resource_handler.cc |
index 581b944f41d6d0908585cd3f587986ba0e0c3516..c832afab18129f928485e5d16e58e33efec88083 100644 |
--- a/content/browser/loader/stream_resource_handler.cc |
+++ b/content/browser/loader/stream_resource_handler.cc |
@@ -63,7 +63,7 @@ bool StreamResourceHandler::OnWillRead(int request_id, |
static const int kReadBufSize = 32768; |
DCHECK(buf && buf_size); |
- if (!read_buffer_) |
+ if (!read_buffer_.get()) |
read_buffer_ = new net::IOBuffer(kReadBufSize); |
*buf = read_buffer_.get(); |
*buf_size = kReadBufSize; |
@@ -78,7 +78,7 @@ bool StreamResourceHandler::OnReadCompleted(int request_id, |
return true; |
// We have more data to read. |
- DCHECK(read_buffer_); |
+ DCHECK(read_buffer_.get()); |
// Release the ownership of the buffer, and store a reference |
// to it. A new one will be allocated in OnWillRead(). |