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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 9316116: Isolate initiation counts for downloads to their own histograms and improve (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to LKGR. Created 8 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
« no previous file with comments | « content/browser/download/drag_download_file.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 2fb67825f07a0d210b8731b28a7ea479f52468c2..dde71d09f57c06111a45fb66aa1492a03559552b 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -683,6 +683,7 @@ void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
scoped_ptr<net::URLRequest> request(
new net::URLRequest(url, resource_dispatcher_host_));
request->set_referrer(referrer.spec());
+ download_stats::RecordDownloadSource(download_stats::INITIATED_BY_RENDERER);
resource_dispatcher_host_->BeginDownload(
request.Pass(),
false,
@@ -691,8 +692,6 @@ void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
render_process_id_,
message.routing_id(),
resource_context_);
- download_stats::RecordDownloadCount(
- download_stats::INITIATED_BY_RENDERER_COUNT);
}
void RenderMessageFilter::OnCheckNotificationPermission(
« no previous file with comments | « content/browser/download/drag_download_file.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698