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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10828342: Per-host V8 histograms. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: lame fix attempt for V8ValueConverterImplTest.BasicRoundTrip Created 8 years, 4 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
« no previous file with comments | « content/renderer/render_thread_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 04f2a9655b6cdfd3a3f36df4e1799bc861c54bda..a62932114b625c4c9d235f4cad7480a3e3e33620 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3211,6 +3211,15 @@ void RenderViewImpl::didCommitProvisionalLoad(WebFrame* frame,
// Check whether we have new encoding name.
UpdateEncoding(frame, frame->view()->pageEncoding().utf8());
+
+ if (!frame->parent()) { // Only for top frames.
+ RenderThreadImpl* render_thread_impl = RenderThreadImpl::current();
+ if (render_thread_impl) { // Can be NULL in tests.
+ render_thread_impl->histogram_customizer()->
+ RenderViewNavigatedToHost(GURL(GetLoadingUrl(frame)).host(),
+ g_view_map.Get().size());
+ }
+ }
}
void RenderViewImpl::didClearWindowObject(WebFrame* frame) {
« no previous file with comments | « content/renderer/render_thread_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698