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

Unified Diff: chrome/browser/sync_file_system/drive_backend/local_to_remote_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/local_to_remote_syncer.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc
index 1888e6e95eaedc48556bb3bf69fb7ada9fcd221b..c5f8a4fdd6a59c69026b15276479b0c194b6f829 100644
--- a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc
+++ b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc
@@ -508,7 +508,7 @@ void LocalToRemoteSyncer::UploadExistingFile(
std::unique_ptr<SyncTaskToken> token) {
DCHECK(remote_file_tracker_);
DCHECK(remote_file_tracker_->has_synced_details());
- DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksOnCurrentThread());
+ DCHECK(sync_context_->GetWorkerTaskRunner()->RunsTasksInCurrentSequence());
const std::string local_file_md5 = drive::util::GetMd5Digest(local_path_,
nullptr);
@@ -611,7 +611,7 @@ void LocalToRemoteSyncer::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());
if (error == google_apis::HTTP_NOT_FOUND) {
retry_on_success_ = true;

Powered by Google App Engine
This is Rietveld 408576698