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

Unified Diff: components/drive/file_system/search_operation.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/directory_loader.cc ('k') | components/history/core/browser/top_sites_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/file_system/search_operation.cc
diff --git a/components/drive/file_system/search_operation.cc b/components/drive/file_system/search_operation.cc
index 31e8437d15ae73b5a83d8884ee448124bf946442..fce7d172f2936b879518c4fb43779aa11218032c 100644
--- a/components/drive/file_system/search_operation.cc
+++ b/components/drive/file_system/search_operation.cc
@@ -145,20 +145,15 @@ void SearchOperation::SearchAfterGetFileList(
// server to the local metadata.
// This may race with sync tasks so we should ask LoaderController here.
std::vector<SearchResultInfo>* result_ptr = result.get();
- loader_controller_->ScheduleRun(base::Bind(
- base::IgnoreResult(
- &base::PostTaskAndReplyWithResult<FileError, FileError>),
- blocking_task_runner_,
- FROM_HERE,
- base::Bind(&ResolveSearchResultOnBlockingPool,
- metadata_,
- base::Passed(&file_list),
- result_ptr),
- base::Bind(&SearchOperation::SearchAfterResolveSearchResult,
- weak_ptr_factory_.GetWeakPtr(),
- callback,
- next_url,
- base::Passed(&result))));
+ loader_controller_->ScheduleRun(
+ base::Bind(base::IgnoreResult(
+ &base::PostTaskAndReplyWithResult<FileError, FileError>),
+ base::RetainedRef(blocking_task_runner_), FROM_HERE,
+ base::Bind(&ResolveSearchResultOnBlockingPool, metadata_,
+ base::Passed(&file_list), result_ptr),
+ base::Bind(&SearchOperation::SearchAfterResolveSearchResult,
+ weak_ptr_factory_.GetWeakPtr(), callback, next_url,
+ base::Passed(&result))));
}
void SearchOperation::SearchAfterResolveSearchResult(
« no previous file with comments | « components/drive/directory_loader.cc ('k') | components/history/core/browser/top_sites_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698