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

Unified Diff: content/browser/worker_host/worker_service_impl.cc

Issue 10828033: Fix crash in WorkerTest.MultipleTabsQueuedSharedWorker. I could get this consistently when running … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« 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/worker_host/worker_service_impl.cc
===================================================================
--- content/browser/worker_host/worker_service_impl.cc (revision 148517)
+++ content/browser/worker_host/worker_service_impl.cc (working copy)
@@ -62,6 +62,17 @@
}
}
+ for (WorkerProcessHost::Instances::iterator i =
Andrew T Wilson (Slow) 2012/07/26 17:20:40 Can we clarify what this is doing? Looks like we'r
jam 2012/07/26 17:26:59 I don't claim to understand the worker document se
+ pending_shared_workers_.begin();
+ i != pending_shared_workers_.end(); ) {
+ i->RemoveFilters(filter);
+ if (i->NumFilters() == 0) {
+ i = pending_shared_workers_.erase(i);
+ } else {
+ ++i;
+ }
+ }
+
// Also, see if that process had any pending shared workers.
for (WorkerProcessHost::Instances::iterator iter =
pending_shared_workers_.begin();
« 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