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

Unified Diff: content/browser/site_instance_impl.cc

Issue 16599016: Add UMA stats for predicted process counts with out-of-process iframes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update hash_tables.h include Created 7 years, 6 months 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/site_instance_impl.cc
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
index 95015b0ebaffccd26a97ef48c24fb3db158ca886..0edd85b19626e4b6ff39bcca219c411b95549d0f 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_);
}
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/web_contents/frame_tree_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698