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

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

Issue 224733014: Introduce ServiceWorkerHandle for tracking WebServiceWorkerImpl reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/service_worker/service_worker_storage.cc
diff --git a/content/browser/service_worker/service_worker_storage.cc b/content/browser/service_worker/service_worker_storage.cc
index a5f88bb91892aa5783bf0f7fdf08046cb77ce7ef..2ef977f6b63bfda26cdf61aaeee45f15026339aa 100644
--- a/content/browser/service_worker/service_worker_storage.cc
+++ b/content/browser/service_worker/service_worker_storage.cc
@@ -36,14 +36,6 @@ ServiceWorkerStorage::ServiceWorkerStorage(
}
ServiceWorkerStorage::~ServiceWorkerStorage() {
- // TODO(michaeln): fix the onwership model such that workers can get shutdown
- // prior to browser close time.
- for (PatternToRegistrationMap::const_iterator iter =
- registration_by_pattern_.begin();
- iter != registration_by_pattern_.end();
- ++iter) {
- iter->second->Shutdown();
- }
registration_by_pattern_.clear();
}

Powered by Google App Engine
This is Rietveld 408576698