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

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

Issue 243583005: Revert of [SyncFS] Post tasks between SyncEngine and SyncWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/remote_to_local_syncer.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
index 73ceb901e1a401b90302d3cd9b31a6bb8879d501..90c3bf0a9223af025c20b345f920d2ba0777264d 100644
--- a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
+++ b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
@@ -671,9 +671,9 @@
void RemoteToLocalSyncer::DownloadFile(const SyncStatusCallback& callback) {
base::PostTaskAndReplyWithResult(
- sync_context_->GetFileTaskRunner(), FROM_HERE,
+ sync_context_->GetBlockingTaskRunner(), FROM_HERE,
base::Bind(&sync_file_system::drive_backend::CreateTemporaryFile,
- make_scoped_refptr(sync_context_->GetFileTaskRunner())),
+ make_scoped_refptr(sync_context_->GetBlockingTaskRunner())),
base::Bind(&RemoteToLocalSyncer::DidCreateTemporaryFileForDownload,
weak_ptr_factory_.GetWeakPtr(), callback));
}
@@ -703,7 +703,7 @@
base::FilePath path = file.path();
base::PostTaskAndReplyWithResult(
- sync_context_->GetFileTaskRunner(), FROM_HERE,
+ sync_context_->GetBlockingTaskRunner(), FROM_HERE,
base::Bind(&drive::util::GetMd5Digest, path),
base::Bind(&RemoteToLocalSyncer::DidCalculateMD5ForDownload,
weak_ptr_factory_.GetWeakPtr(),

Powered by Google App Engine
This is Rietveld 408576698