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

Unified Diff: webkit/browser/fileapi/quota/quota_backend_impl.cc

Issue 488463005: Remove implicit conversions from scoped_refptr to T* in webkit/ (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: webkit/browser/fileapi/quota/quota_backend_impl.cc
diff --git a/webkit/browser/fileapi/quota/quota_backend_impl.cc b/webkit/browser/fileapi/quota/quota_backend_impl.cc
index fe2e11db1a2f582a22035df1dc87aaffde6bb60b..deb100eecf38328e8609659cd179f0c1263a119b 100644
--- a/webkit/browser/fileapi/quota/quota_backend_impl.cc
+++ b/webkit/browser/fileapi/quota/quota_backend_impl.cc
@@ -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,
« no previous file with comments | « webkit/browser/blob/blob_url_request_job_factory.cc ('k') | webkit/browser/fileapi/sandbox_file_system_backend_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698