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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_task_token.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/sync_task_token.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc b/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc
index 9efad0ee820cfb0200b33bfd558ec79374c11848..d53f78e55f751ed4cf2b9e59e8a0640bb7374d56 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc
@@ -65,7 +65,7 @@ SyncTaskToken::~SyncTaskToken() {
// it must return the token to TaskManager.
// Destroying a token with valid |client| indicates the token was
// dropped by a task without returning.
- if (task_runner_.get() && task_runner_->RunsTasksOnCurrentThread() &&
+ if (task_runner_.get() && task_runner_->RunsTasksInCurrentSequence() &&
manager_ && manager_->IsRunningTask(token_id_)) {
if (!manager_->ShouldTrackTaskToken())
return;

Powered by Google App Engine
This is Rietveld 408576698