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

Unified Diff: storage/browser/quota/quota_manager_proxy.cc

Issue 1815363002: Add RetainedRef uses where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « storage/browser/quota/quota_manager.cc ('k') | sync/internal_api/http_bridge_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/quota_manager_proxy.cc
diff --git a/storage/browser/quota/quota_manager_proxy.cc b/storage/browser/quota/quota_manager_proxy.cc
index 2efd22c80fb6f16d510e03eeaf5f46675990569e..0c1ad0a9467e45b07ba4e8d1ae1e0c66e1e38272 100644
--- a/storage/browser/quota/quota_manager_proxy.cc
+++ b/storage/browser/quota/quota_manager_proxy.cc
@@ -26,10 +26,9 @@ void DidGetUsageAndQuota(
int64_t quota) {
if (!original_task_runner->RunsTasksOnCurrentThread()) {
original_task_runner->PostTask(
- FROM_HERE,
- base::Bind(&DidGetUsageAndQuota,
- make_scoped_refptr(original_task_runner),
- callback, status, usage, quota));
+ FROM_HERE, base::Bind(&DidGetUsageAndQuota,
+ base::RetainedRef(original_task_runner), callback,
+ status, usage, quota));
return;
}
@@ -134,10 +133,9 @@ void QuotaManagerProxy::GetUsageAndQuota(
const GetUsageAndQuotaCallback& callback) {
if (!io_thread_->BelongsToCurrentThread()) {
io_thread_->PostTask(
- FROM_HERE,
- base::Bind(&QuotaManagerProxy::GetUsageAndQuota, this,
- make_scoped_refptr(original_task_runner),
- origin, type, callback));
+ FROM_HERE, base::Bind(&QuotaManagerProxy::GetUsageAndQuota, this,
+ base::RetainedRef(original_task_runner), origin,
+ type, callback));
return;
}
if (!manager_) {
@@ -150,8 +148,8 @@ void QuotaManagerProxy::GetUsageAndQuota(
manager_->GetUsageAndQuota(
origin, type,
- base::Bind(&DidGetUsageAndQuota,
- make_scoped_refptr(original_task_runner), callback));
+ base::Bind(&DidGetUsageAndQuota, base::RetainedRef(original_task_runner),
+ callback));
}
QuotaManager* QuotaManagerProxy::quota_manager() const {
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | sync/internal_api/http_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698