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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_service.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: chrome/browser/sync_file_system/local/local_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_service.cc b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
index d9904fbb7aa533bf00e5d7957322aa533233cd78..c2d977869bad6db49a62fddbc8d2afed0de4a419 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
@@ -138,7 +138,7 @@ void LocalFileSyncService::MaybeInitializeFileSystemContext(
app_origin, file_system_context,
base::Bind(&LocalFileSyncService::DidInitializeFileSystemContext,
AsWeakPtr(), app_origin,
- make_scoped_refptr(file_system_context), callback));
+ base::RetainedRef(file_system_context), callback));
}
void LocalFileSyncService::AddChangeObserver(Observer* observer) {
@@ -251,12 +251,9 @@ void LocalFileSyncService::PrepareForProcessRemoteChange(
content::BrowserContext::GetStoragePartitionForSite(profile_, site_url)
->GetFileSystemContext();
MaybeInitializeFileSystemContext(
- url.origin(),
- file_system_context.get(),
+ url.origin(), file_system_context.get(),
base::Bind(&LocalFileSyncService::DidInitializeForRemoteSync,
- AsWeakPtr(),
- url,
- file_system_context,
+ AsWeakPtr(), url, base::RetainedRef(file_system_context),
callback));
return;
}

Powered by Google App Engine
This is Rietveld 408576698