Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 3d3dfaedca59c5d16c8b2e0edb37ac36cf6452b3..3b60f7dcd9f0118945cf6209c7c6105099fbf1b7 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -395,20 +395,13 @@ WebContentsImpl* WebContentsImpl::CreateWithOpener( |
} |
WebContentsImpl* WebContentsImpl::CreateGuest(BrowserContext* browser_context, |
- const std::string& host_url, |
+ SiteInstance* site_instance, |
int guest_instance_id, |
bool focused, |
bool visible) { |
- // The SiteInstance of a given guest is based on the fact that it's a guest |
- // in addition to which platform application the guest belongs to, rather |
- // than the URL that the guest is being navigated to. |
- GURL guest_site( |
- base::StringPrintf("%s://%s", chrome::kGuestScheme, host_url.c_str())); |
- SiteInstance* guest_site_instance = |
- SiteInstance::CreateForURL(browser_context, guest_site); |
WebContentsImpl* new_contents = WebContentsImpl::Create( |
browser_context, |
- guest_site_instance, |
+ site_instance, |
MSG_ROUTING_NONE, |
NULL); // base WebContents |
WebContentsImpl* new_contents_impl = |