Chromium Code Reviews| 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(); |