| Index: content/browser/renderer_host/render_process_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
| index de830f42ef43f732fe58fdda9d5c94fe7df35ba9..cb6a6bc5fd02f51b71a0b54d4b3cdea33e414f48 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -2108,6 +2108,20 @@ void RenderProcessHostImpl::UnregisterHost(int host_id) {
|
| }
|
|
|
| // static
|
| +void RenderProcessHostImpl::CheckAllTerminated() {
|
| + iterator iter(AllHostsIterator());
|
| + while (!iter.IsAtEnd()) {
|
| + // The leftover hosts must have reset IPC channel and getting deleted soon.
|
| + RenderProcessHostImpl* host =
|
| + static_cast<RenderProcessHostImpl*>(iter.GetCurrentValue());
|
| + CHECK(host->listeners_.IsEmpty());
|
| + CHECK_EQ(0, host->worker_ref_count_);
|
| + CHECK(!host->channel_);
|
| + CHECK(host->deleting_soon_);
|
| + }
|
| +}
|
| +
|
| +// static
|
| void RenderProcessHostImpl::FilterURL(RenderProcessHost* rph,
|
| bool empty_allowed,
|
| GURL* url) {
|
|
|