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

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

Issue 1943403003: Add DCHECK to detect when a RPH is reused with a different context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/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 1792b84b62471e9e96e76012ef7177f2e2982c8e..a98777ece0a495dfc469a0385aa6374ec0fdc82a 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2131,8 +2131,11 @@ void RenderProcessHostImpl::FilterURL(RenderProcessHost* rph,
bool RenderProcessHostImpl::IsSuitableHost(RenderProcessHost* host,
BrowserContext* browser_context,
const GURL& site_url) {
- if (run_renderer_in_process())
+ if (run_renderer_in_process()) {
+ DCHECK_EQ(host->GetBrowserContext(), browser_context)
+ << " Single-process mode does not support multiple browser contexts.";
return true;
+ }
if (host->GetBrowserContext() != browser_context)
return false;
« 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