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

Unified Diff: components/drive/chromeos/change_list_loader.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 | « base/task_runner_util.h ('k') | components/drive/chromeos/directory_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/chromeos/change_list_loader.cc
diff --git a/components/drive/chromeos/change_list_loader.cc b/components/drive/chromeos/change_list_loader.cc
index 639bc38d396054d2152635865d4f901930201081..a632c46ddee506a7705f479ef4be0d3f947cb557 100644
--- a/components/drive/chromeos/change_list_loader.cc
+++ b/components/drive/chromeos/change_list_loader.cc
@@ -21,6 +21,7 @@
#include "components/drive/chromeos/change_list_loader_observer.h"
#include "components/drive/chromeos/change_list_processor.h"
#include "components/drive/chromeos/resource_metadata.h"
+#include "components/drive/drive_api_util.h"
#include "components/drive/event_logger.h"
#include "components/drive/file_system_core_util.h"
#include "components/drive/job_scheduler.h"
@@ -576,9 +577,8 @@ void ChangeListLoader::LoadChangeListFromServerAfterLoadChangeList(
"Apply change lists (is delta: %d)",
is_delta_update);
loader_controller_->ScheduleRun(base::Bind(
- base::IgnoreResult(
- &base::PostTaskAndReplyWithResult<FileError, FileError>),
- base::RetainedRef(blocking_task_runner_), FROM_HERE,
+ &drive::util::RunAsyncTask, base::RetainedRef(blocking_task_runner_),
+ FROM_HERE,
base::Bind(&ChangeListProcessor::Apply,
base::Unretained(change_list_processor),
base::Passed(&about_resource), base::Passed(&change_lists),
« no previous file with comments | « base/task_runner_util.h ('k') | components/drive/chromeos/directory_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698