summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/site_instance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/site_instance.cc')
-rw-r--r--chrome/browser/tab_contents/site_instance.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/site_instance.cc b/chrome/browser/tab_contents/site_instance.cc
index 05b3fbd..e817b8b 100644
--- a/chrome/browser/tab_contents/site_instance.cc
+++ b/chrome/browser/tab_contents/site_instance.cc
@@ -94,6 +94,12 @@ SiteInstance* SiteInstance::CreateSiteInstance(Profile* profile) {
}
/*static*/
+SiteInstance* SiteInstance::CreateSiteInstanceForURL(Profile* profile,
+ const GURL& url) {
+ return (new BrowsingInstance(profile))->GetSiteInstanceForURL(url);
+}
+
+/*static*/
GURL SiteInstance::GetSiteForURL(const GURL& url) {
// URLs with no host should have an empty site.
GURL site;