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

Unified Diff: webkit/blob/blob_url_request_job.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « webkit/appcache/mock_appcache_storage_unittest.cc ('k') | webkit/blob/blob_url_request_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/blob_url_request_job.cc
diff --git a/webkit/blob/blob_url_request_job.cc b/webkit/blob/blob_url_request_job.cc
index 279c1eec64f6e2e218bc1933d959db17d629ffc0..713fcb376a7c11e4d98ee08d40c03b827d75b5ab 100644
--- a/webkit/blob/blob_url_request_job.cc
+++ b/webkit/blob/blob_url_request_job.cc
@@ -118,7 +118,7 @@ bool BlobURLRequestJob::ReadRawData(net::IOBuffer* dest,
}
// Keep track of the buffer.
- DCHECK(!read_buf_);
+ DCHECK(!read_buf_.get());
read_buf_ = new net::DrainableIOBuffer(dest, dest_size);
return ReadLoop(bytes_read);
@@ -175,7 +175,7 @@ void BlobURLRequestJob::DidStart() {
}
// If the blob data is not present, bail out.
- if (!blob_data_) {
+ if (!blob_data_.get()) {
NotifyFailure(net::ERR_FILE_NOT_FOUND);
return;
}
@@ -365,7 +365,7 @@ bool BlobURLRequestJob::ReadFileItem(FileStreamReader* reader,
DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read);
DCHECK(reader);
const int result = reader->Read(
- read_buf_, bytes_to_read,
+ read_buf_.get(), bytes_to_read,
base::Bind(&BlobURLRequestJob::DidReadFile,
base::Unretained(this)));
if (result >= 0) {
@@ -555,10 +555,10 @@ void BlobURLRequestJob::CreateFileStreamReader(size_t index,
switch (item.type()) {
case BlobData::Item::TYPE_FILE:
reader = new LocalFileStreamReader(
- file_thread_proxy_,
- item.path(),
- item.offset() + additional_offset,
- item.expected_modification_time());
+ file_thread_proxy_.get(),
+ item.path(),
+ item.offset() + additional_offset,
+ item.expected_modification_time());
break;
case BlobData::Item::TYPE_FILE_FILESYSTEM:
reader = file_system_context_->CreateFileStreamReader(
« no previous file with comments | « webkit/appcache/mock_appcache_storage_unittest.cc ('k') | webkit/blob/blob_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698