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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1688963002: UMA stats to count RenderFrameProxyHosts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uma2
Patch Set: Charlie's fixes Created 4 years, 10 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/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index de0669e134337fb6cfe5524db9abde75cdd5f535..a6341ccb95d42d5050b35c2677dcdd7269d81592 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2325,6 +2325,12 @@ bool RenderFrameHostImpl::IsRenderFrameLive() {
return is_live;
}
+int RenderFrameHostImpl::GetProxyCount() {
+ if (this != frame_tree_node_->current_frame_host())
+ return 0;
+ return frame_tree_node_->render_manager()->GetProxyCount();
+}
+
#if defined(OS_WIN)
void RenderFrameHostImpl::SetParentNativeViewAccessible(
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/frame_host/render_frame_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698