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

Unified Diff: content/browser/storage_partition_impl_map.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
Index: content/browser/storage_partition_impl_map.cc
diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
index 7a0dd9c94c0ca5c84eaa93f5e762d8a86b136573..3f438a953d1fd048165a76097cc622f8810b9ff3 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -590,21 +590,21 @@ void StoragePartitionImplMap::PostCreateInitialization(
if (BrowserThread::IsMessageLoopValid(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&ChromeAppCacheService::InitializeOnIOThread,
- partition->GetAppCacheService(),
- in_memory ? base::FilePath() :
- partition->GetPath().Append(kAppCacheDirname),
- browser_context_->GetResourceContext(),
- make_scoped_refptr(partition->GetURLRequestContext()),
- make_scoped_refptr(
- browser_context_->GetSpecialStoragePolicy())));
+ base::Bind(
+ &ChromeAppCacheService::InitializeOnIOThread,
+ partition->GetAppCacheService(),
+ in_memory ? base::FilePath()
+ : partition->GetPath().Append(kAppCacheDirname),
+ browser_context_->GetResourceContext(),
+ base::RetainedRef(partition->GetURLRequestContext()),
+ base::RetainedRef(browser_context_->GetSpecialStoragePolicy())));
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&CacheStorageContextImpl::SetBlobParametersForCache,
partition->GetCacheStorageContext(),
- make_scoped_refptr(partition->GetURLRequestContext()),
- make_scoped_refptr(
+ base::RetainedRef(partition->GetURLRequestContext()),
+ base::RetainedRef(
ChromeBlobStorageContext::GetFor(browser_context_))));
BrowserThread::PostTask(
@@ -612,7 +612,7 @@ void StoragePartitionImplMap::PostCreateInitialization(
base::Bind(&ServiceWorkerContextWrapper::InitializeResourceContext,
partition->GetServiceWorkerContext(),
browser_context_->GetResourceContext(),
- make_scoped_refptr(partition->GetURLRequestContext())));
+ base::RetainedRef(partition->GetURLRequestContext())));
// We do not call InitializeURLRequestContext() for media contexts because,
// other than the HTTP cache, the media contexts share the same backing
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/browser/tracing/tracing_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698