From 1ae93fb12b16a60476056bf70dd773b987f0913a Mon Sep 17 00:00:00 2001 From: "creis@chromium.org" Date: Fri, 14 Jun 2013 03:38:56 +0000 Subject: Add UMA stats for predicted process counts with out-of-process iframes. Requires adding the committed URL to each FrameTreeNode and exposing the ShouldUseProcessPerSite function outside content. BUG=248299 Review URL: https://chromiumcodereview.appspot.com/16599016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206286 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/site_instance_impl.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'content/browser/site_instance_impl.cc') diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc index 95015b0..0edd85b 100644 --- a/content/browser/site_instance_impl.cc +++ b/content/browser/site_instance_impl.cc @@ -74,7 +74,7 @@ bool SiteInstanceImpl::HasProcess() const { BrowserContext* browser_context = browsing_instance_->browser_context(); if (has_site_ && - RenderProcessHostImpl::ShouldUseProcessPerSite(browser_context, site_) && + RenderProcessHost::ShouldUseProcessPerSite(browser_context, site_) && RenderProcessHostImpl::GetProcessHostForSite(browser_context, site_)) { return true; } @@ -97,7 +97,7 @@ RenderProcessHost* SiteInstanceImpl::GetProcess() { // If we should use process-per-site mode (either in general or for the // given site), then look for an existing RenderProcessHost for the site. bool use_process_per_site = has_site_ && - RenderProcessHostImpl::ShouldUseProcessPerSite(browser_context, site_); + RenderProcessHost::ShouldUseProcessPerSite(browser_context, site_); if (use_process_per_site) { process_ = RenderProcessHostImpl::GetProcessHostForSite(browser_context, site_); @@ -171,8 +171,7 @@ void SiteInstanceImpl::SetSite(const GURL& url) { LockToOrigin(); // Ensure the process is registered for this site if necessary. - if (RenderProcessHostImpl::ShouldUseProcessPerSite(browser_context, - site_)) { + if (RenderProcessHost::ShouldUseProcessPerSite(browser_context, site_)) { RenderProcessHostImpl::RegisterProcessHostForSite( browser_context, process_, site_); } -- cgit v1.1