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

Unified Diff: components/drive/chromeos/file_system/search_operation.cc

Issue 2842493004: Add OnceCallback support to PostTaskAndReplyWithResult (Closed)
Patch Set: s/can not/cannot/ Created 3 years, 8 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/chromeos/directory_loader.cc ('k') | components/drive/drive_api_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/chromeos/file_system/search_operation.cc
diff --git a/components/drive/chromeos/file_system/search_operation.cc b/components/drive/chromeos/file_system/search_operation.cc
index e2005cafef191b2db06da9b6d0c656e748b74686..649578e7625dbccd6a5bf7cedca902cf68939d9c 100644
--- a/components/drive/chromeos/file_system/search_operation.cc
+++ b/components/drive/chromeos/file_system/search_operation.cc
@@ -14,7 +14,6 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
-#include "base/task_runner_util.h"
#include "components/drive/chromeos/change_list_loader.h"
#include "components/drive/chromeos/resource_metadata.h"
#include "components/drive/drive_api_util.h"
@@ -150,8 +149,7 @@ void SearchOperation::SearchAfterGetFileList(
// 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>),
+ base::Bind(&drive::util::RunAsyncTask,
base::RetainedRef(blocking_task_runner_), FROM_HERE,
base::Bind(&ResolveSearchResultOnBlockingPool, metadata_,
base::Passed(&file_list), result_ptr),
« no previous file with comments | « components/drive/chromeos/directory_loader.cc ('k') | components/drive/drive_api_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698