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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 11234032: Webview tag creation should be using storage partitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added IndexedDB test. Created 8 years, 1 month 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: 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 =

Powered by Google App Engine
This is Rietveld 408576698