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

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

Issue 236313009: [SyncFS] Post tasks between SyncEngine and SyncWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use post tasks temporarily Created 6 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
Index: chrome/browser/sync_file_system/drive_backend/sync_engine.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
index bd296c15931e9867b9a180fedf0cac08ed14cd70..743ba488c4bdbd586d4f0257f2ee0851ecf63bac 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
@@ -130,7 +130,8 @@ void SyncEngine::Initialize(const base::FilePath& base_dir,
scoped_ptr<SyncEngineContext> sync_engine_context(
new SyncEngineContext(drive_service_.get(),
drive_uploader_.get(),
- task_runner));
+ task_runner,
+ base::MessageLoopProxy::current()));
// TODO(peria): Move this create function to thread pool.
sync_worker_ = SyncWorker::CreateOnWorker(weak_ptr_factory_.GetWeakPtr(),
base_dir,
@@ -177,8 +178,7 @@ void SyncEngine::ProcessRemoteChange(const SyncFileCallback& callback) {
sync_worker_->ProcessRemoteChange(callback);
}
-void SyncEngine::SetRemoteChangeProcessor(
- RemoteChangeProcessor* processor) {
+void SyncEngine::SetRemoteChangeProcessor(RemoteChangeProcessor* processor) {
sync_worker_->SetRemoteChangeProcessor(processor);
}

Powered by Google App Engine
This is Rietveld 408576698