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

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 2686943002: New WebContents created via ctrl-click should be in a new process. (Closed)
Patch Set: s/use_new_renderer.../force_new_renderer.../ + comment changes. Created 3 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
Index: chrome/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index 1a7e8063626468d6f4ecb99c13cc336d3efca219..b38f017fe078b311c9b79b78a6d3b29118e29e31 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -356,7 +356,7 @@ content::WebContents* CreateTargetContents(const chrome::NavigateParams& params,
const GURL& url) {
WebContents::CreateParams create_params(
params.browser->profile(),
- params.source_site_instance
+ params.source_site_instance && !params.force_new_renderer_for_new_contents
? params.source_site_instance
: tab_util::GetSiteInstanceForNewTab(params.browser->profile(), url));
create_params.main_frame_name = params.frame_name;

Powered by Google App Engine
This is Rietveld 408576698