Commit 87267fed authored by dcheng's avatar dcheng Committed by Commit bot

Remove implicit conversions from scoped_refptr to T* in webkit/

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

Review URL: https://codereview.chromium.org/488463005

Cr-Commit-Position: refs/heads/master@{#292041}
parent 61b78e43
......@@ -23,7 +23,7 @@ BlobDataHandle::BlobDataHandleShared::BlobDataHandleShared(
}
BlobData* BlobDataHandle::BlobDataHandleShared::data() const {
return blob_data_;
return blob_data_.get();
}
const std::string& BlobDataHandle::BlobDataHandleShared::uuid() const {
......@@ -40,7 +40,7 @@ BlobDataHandle::BlobDataHandle(BlobData* blob_data,
base::SequencedTaskRunner* task_runner)
: io_task_runner_(task_runner),
shared_(new BlobDataHandleShared(blob_data, context, task_runner)) {
DCHECK(io_task_runner_);
DCHECK(io_task_runner_.get());
DCHECK(io_task_runner_->RunsTasksOnCurrentThread());
}
......
......@@ -64,8 +64,8 @@ net::URLRequestJob* BlobProtocolHandler::MaybeCreateJob(
return new storage::BlobURLRequestJob(request,
network_delegate,
LookupBlobData(request),
file_system_context_,
file_loop_proxy_);
file_system_context_.get(),
file_loop_proxy_.get());
}
scoped_refptr<storage::BlobData> BlobProtocolHandler::LookupBlobData(
......
......@@ -43,12 +43,15 @@ void QuotaBackendImpl::ReserveQuota(const GURL& origin,
callback.Run(base::File::FILE_OK, 0);
return;
}
DCHECK(quota_manager_proxy_);
DCHECK(quota_manager_proxy_.get());
quota_manager_proxy_->GetUsageAndQuota(
file_task_runner_, origin, FileSystemTypeToQuotaStorageType(type),
file_task_runner_.get(),
origin,
FileSystemTypeToQuotaStorageType(type),
base::Bind(&QuotaBackendImpl::DidGetUsageAndQuotaForReserveQuota,
weak_ptr_factory_.GetWeakPtr(),
QuotaReservationInfo(origin, type, delta), callback));
QuotaReservationInfo(origin, type, delta),
callback));
}
void QuotaBackendImpl::ReleaseReservedQuota(const GURL& origin,
......@@ -136,7 +139,7 @@ void QuotaBackendImpl::DidGetUsageAndQuotaForReserveQuota(
void QuotaBackendImpl::ReserveQuotaInternal(const QuotaReservationInfo& info) {
DCHECK(file_task_runner_->RunsTasksOnCurrentThread());
DCHECK(info.origin.is_valid());
DCHECK(quota_manager_proxy_);
DCHECK(quota_manager_proxy_.get());
quota_manager_proxy_->NotifyStorageModified(
storage::QuotaClient::kFileSystem,
info.origin,
......
......@@ -191,7 +191,7 @@ SandboxFileSystemBackendDelegate::SandboxFileSystemBackendDelegate(
usage_cache())),
quota_reservation_manager_(new QuotaReservationManager(
scoped_ptr<QuotaReservationManager::QuotaBackend>(
new QuotaBackendImpl(file_task_runner_,
new QuotaBackendImpl(file_task_runner_.get(),
obfuscated_file_util(),
usage_cache(),
quota_manager_proxy)))),
......
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