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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2133813002: Check that all RenderProcessHost(s) are terminated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 86624eb5bbf6a85122a4850e98c9ef411ae6705c..a5b9f78d4cad69ad001455f2a122e0fa089dcd73 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2103,6 +2103,16 @@ void RenderProcessHostImpl::UnregisterHost(int host_id) {
}
// static
+bool RenderProcessHostImpl::HasAnyConnection() {
+ iterator iter(AllHostsIterator());
+ while (!iter.IsAtEnd()) {
+ if (iter.GetCurrentValue()->HasConnection())
+ return true;
+ }
+ return false;
+}
+
+// static
void RenderProcessHostImpl::FilterURL(RenderProcessHost* rph,
bool empty_allowed,
GURL* url) {

Powered by Google App Engine
This is Rietveld 408576698