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

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

Issue 1843943003: Extension-created windows should share the creator's BrowingInstance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 9 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 75ab0792ea2d055f39793ca172452caf3132aecf..746e8f5d06e9f8e002b2f9c3cfac95e30cad9fb2 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -338,7 +338,9 @@ content::WebContents* CreateTargetContents(const chrome::NavigateParams& params,
const GURL& url) {
WebContents::CreateParams create_params(
params.browser->profile(),
- tab_util::GetSiteInstanceForNewTab(params.browser->profile(), url));
+ params.source_site_instance
+ ? params.source_site_instance
+ : tab_util::GetSiteInstanceForNewTab(params.browser->profile(), url));
if (params.source_contents) {
create_params.initial_size =
params.source_contents->GetContainerBounds().size();

Powered by Google App Engine
This is Rietveld 408576698