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

Unified Diff: components/drive/directory_loader.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 | « components/drive/change_list_loader.cc ('k') | components/drive/file_system/search_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/directory_loader.cc
diff --git a/components/drive/directory_loader.cc b/components/drive/directory_loader.cc
index ad42626348ca04cd909828f100188b03e01a3b1b..4f0b236c5ff0bff80a979de42df8f83d7321fa17 100644
--- a/components/drive/directory_loader.cc
+++ b/components/drive/directory_loader.cc
@@ -141,17 +141,12 @@ class DirectoryLoader::FeedFetcher {
loader_->loader_controller_->ScheduleRun(base::Bind(
base::IgnoreResult(
&base::PostTaskAndReplyWithResult<FileError, FileError>),
- loader_->blocking_task_runner_,
- FROM_HERE,
+ base::RetainedRef(loader_->blocking_task_runner_), FROM_HERE,
base::Bind(&ChangeListProcessor::RefreshDirectory,
- loader_->resource_metadata_,
- directory_fetch_info_,
- base::Passed(&change_list),
- entries),
+ loader_->resource_metadata_, directory_fetch_info_,
+ base::Passed(&change_list), entries),
base::Bind(&FeedFetcher::OnDirectoryRefreshed,
- weak_ptr_factory_.GetWeakPtr(),
- callback,
- next_url,
+ weak_ptr_factory_.GetWeakPtr(), callback, next_url,
base::Owned(entries))));
}
« no previous file with comments | « components/drive/change_list_loader.cc ('k') | components/drive/file_system/search_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698