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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_worker.cc

Issue 334053008: [SyncFS] Make task invocation in SyncTaskRunner async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/drive_backend/sync_worker.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
index c063676dbb85833e67bc9dda5a52317a23cfcbb3..330d39a377a16c8056dc9040ef416f32c90c6b85 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
@@ -70,7 +70,8 @@ void SyncWorker::Initialize(scoped_ptr<SyncEngineContext> context) {
context_ = context.Pass();
task_manager_.reset(new SyncTaskManager(
- weak_ptr_factory_.GetWeakPtr(), 0 /* maximum_background_task */));
+ weak_ptr_factory_.GetWeakPtr(), 0 /* maximum_background_task */,
+ context_->GetWorkerTaskRunner()));
task_manager_->Initialize(SYNC_STATUS_OK);
PostInitializeTask();

Powered by Google App Engine
This is Rietveld 408576698