diff options
Diffstat (limited to 'chrome/browser/tab_contents/site_instance.cc')
-rw-r--r-- | chrome/browser/tab_contents/site_instance.cc | 6 |
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; |