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

Unified Diff: content/browser/background_fetch/background_fetch_service_impl.cc

Issue 2973233002: [Background Fetch] Cleanup/fix thread safety (Closed)
Patch Set: Remove n.b. from comments Created 3 years, 5 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: content/browser/background_fetch/background_fetch_service_impl.cc
diff --git a/content/browser/background_fetch/background_fetch_service_impl.cc b/content/browser/background_fetch/background_fetch_service_impl.cc
index 37a8a8c57146873ec9fa20792a0298dcc85844a5..ea81d347380ae393330b652808fdd5d7b6028b57 100644
--- a/content/browser/background_fetch/background_fetch_service_impl.cc
+++ b/content/browser/background_fetch/background_fetch_service_impl.cc
@@ -51,7 +51,9 @@ BackgroundFetchServiceImpl::BackgroundFetchServiceImpl(
DCHECK(background_fetch_context_);
}
-BackgroundFetchServiceImpl::~BackgroundFetchServiceImpl() = default;
+BackgroundFetchServiceImpl::~BackgroundFetchServiceImpl() {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+}
void BackgroundFetchServiceImpl::Fetch(
int64_t service_worker_registration_id,

Powered by Google App Engine
This is Rietveld 408576698