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

Unified Diff: content/browser/service_worker/service_worker_registration.cc

Issue 2469203002: ServiceWorker: Let dtor of SWRegistration work in the shutdown sequence (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_registration.cc
diff --git a/content/browser/service_worker/service_worker_registration.cc b/content/browser/service_worker/service_worker_registration.cc
index aed07474996b3601dcb782ba9e479adbf713c70c..caad32061aa670b56494bf20d4a41ca4f3a7a1db 100644
--- a/content/browser/service_worker/service_worker_registration.cc
+++ b/content/browser/service_worker/service_worker_registration.cc
@@ -49,11 +49,6 @@ ServiceWorkerRegistration::ServiceWorkerRegistration(
}
ServiceWorkerRegistration::~ServiceWorkerRegistration() {
- // Can be false during shutdown, in which case the DCHECK_CURRENTLY_ON below
- // would cry.
- if (!BrowserThread::IsThreadInitialized(BrowserThread::IO))
- return;
-
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(!listeners_.might_have_observers());
if (context_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698