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

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

Issue 2871303004: Rename TaskRunner::RunsTasksOnCurrentThread() in //chrome (Closed)
Patch Set: fixed build error Created 3 years, 7 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 b3af159b00d085292a76997c3500af3d16c086d9..9e39c6624e5253ef76688c06db3da36efd9a2e75 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
@@ -410,7 +410,7 @@ void RemoteToLocalSyncer::DidGetRemoteMetadata(
std::unique_ptr<SyncTaskToken> token,
google_apis::DriveApiErrorCode error,
std::unique_ptr<google_apis::FileResource> entry) {
- DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksOnCurrentThread());
+ DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksInCurrentSequence());
SyncStatusCode status = DriveApiErrorCodeToSyncStatusCode(error);
if (status != SYNC_STATUS_OK &&
@@ -784,7 +784,7 @@ void RemoteToLocalSyncer::DeleteLocalFile(
}
void RemoteToLocalSyncer::DownloadFile(std::unique_ptr<SyncTaskToken> token) {
- DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksOnCurrentThread());
+ DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksInCurrentSequence());
storage::ScopedFile file = CreateTemporaryFile(
make_scoped_refptr(sync_context_->GetWorkerTaskRunner()));
@@ -803,7 +803,7 @@ void RemoteToLocalSyncer::DidDownloadFile(std::unique_ptr<SyncTaskToken> token,
storage::ScopedFile file,
google_apis::DriveApiErrorCode error,
const base::FilePath&) {
- DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksOnCurrentThread());
+ DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksInCurrentSequence());
SyncStatusCode status = DriveApiErrorCodeToSyncStatusCode(error);
if (status != SYNC_STATUS_OK) {

Powered by Google App Engine
This is Rietveld 408576698