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

Unified Diff: content/browser/storage_partition_impl.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 | « content/browser/ssl/ssl_client_auth_handler.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 7a9b90e87ea5e3ec8b12902d64fba6cbd3502365..23959f71aa35c7daa1b096cfcbd58c9c8aabb21f 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -657,42 +657,30 @@ void StoragePartitionImpl::QuotaManagedDataDeletionHelper::ClearDataOnIOThread(
// within the user-specified timeframe, and deal with the resulting set in
// ClearQuotaManagedOriginsOnIOThread().
quota_manager->GetOriginsModifiedSince(
- storage::kStorageTypePersistent,
- begin,
+ storage::kStorageTypePersistent, begin,
base::Bind(&QuotaManagedDataDeletionHelper::ClearOriginsOnIOThread,
- base::Unretained(this),
- quota_manager,
- special_storage_policy,
- origin_matcher,
- decrement_callback));
+ base::Unretained(this), base::RetainedRef(quota_manager),
+ special_storage_policy, origin_matcher, decrement_callback));
}
// Do the same for temporary quota.
if (quota_storage_remove_mask & QUOTA_MANAGED_STORAGE_MASK_TEMPORARY) {
IncrementTaskCountOnIO();
quota_manager->GetOriginsModifiedSince(
- storage::kStorageTypeTemporary,
- begin,
+ storage::kStorageTypeTemporary, begin,
base::Bind(&QuotaManagedDataDeletionHelper::ClearOriginsOnIOThread,
- base::Unretained(this),
- quota_manager,
- special_storage_policy,
- origin_matcher,
- decrement_callback));
+ base::Unretained(this), base::RetainedRef(quota_manager),
+ special_storage_policy, origin_matcher, decrement_callback));
}
// Do the same for syncable quota.
if (quota_storage_remove_mask & QUOTA_MANAGED_STORAGE_MASK_SYNCABLE) {
IncrementTaskCountOnIO();
quota_manager->GetOriginsModifiedSince(
- storage::kStorageTypeSyncable,
- begin,
+ storage::kStorageTypeSyncable, begin,
base::Bind(&QuotaManagedDataDeletionHelper::ClearOriginsOnIOThread,
- base::Unretained(this),
- quota_manager,
- special_storage_policy,
- origin_matcher,
- decrement_callback));
+ base::Unretained(this), base::RetainedRef(quota_manager),
+ special_storage_policy, origin_matcher, decrement_callback));
}
DecrementTaskCountOnIO();
« no previous file with comments | « content/browser/ssl/ssl_client_auth_handler.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698