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

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

Issue 881203003: Suppress sequence checks in SyncFileSystem on the shutdown phase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +param comment Created 5 years, 11 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 590e9a808ace07bed7d2735aa6d14ebc1e697343..b4d58bf862d2713c45ebfbb6ef3a6333a88c6878 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
@@ -70,6 +70,9 @@ SyncTaskToken::~SyncTaskToken() {
// dropped by a task without returning.
if (task_runner_.get() && task_runner_->RunsTasksOnCurrentThread() &&
manager_ && manager_->IsRunningTask(token_id_)) {
+ if (!manager_->ShouldTrackTaskToken())
+ return;
+
NOTREACHED()
<< "Unexpected TaskToken deletion from: " << location_.ToString();

Powered by Google App Engine
This is Rietveld 408576698