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

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

Issue 16267002: Re-fix http://crbug.com/87176, and add a test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 7 years, 6 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 | « content/browser/renderer_host/render_process_host_browsertest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2eb4653642a284908526c193f272227fa78eebf1..d79dd23b074c1e6065fec91f6f0fea99fc920dd9 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1692,11 +1692,11 @@ void RenderProcessHostImpl::EndFrameSubscription(int route_id) {
}
void RenderProcessHostImpl::OnShutdownRequest() {
- // Don't shut down if there are more active RenderViews than the one asking
- // to close, or if there are pending RenderViews being swapped back in.
+ // Don't shut down if there are active RenderViews, or if there are pending
+ // RenderViews being swapped back in.
// In single process mode, we never shutdown the renderer.
int num_active_views = GetActiveViewCount();
- if (pending_views_ || num_active_views > 1 || run_renderer_in_process())
+ if (pending_views_ || num_active_views > 0 || run_renderer_in_process())
return;
// Notify any contents that might have swapped out renderers from this
« no previous file with comments | « content/browser/renderer_host/render_process_host_browsertest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698