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

Unified Diff: chrome/browser/download/download_throttling_resource_handler.cc

Issue 7664019: Move download UMA functions to their own file in content. Also fire the chrome-only notification ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « no previous file | chrome/browser/download/download_util.h » ('j') | content/browser/download/download_stats.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_throttling_resource_handler.cc
===================================================================
--- chrome/browser/download/download_throttling_resource_handler.cc (revision 96993)
+++ chrome/browser/download/download_throttling_resource_handler.cc (working copy)
@@ -5,7 +5,7 @@
#include "chrome/browser/download/download_throttling_resource_handler.h"
#include "base/logging.h"
-#include "chrome/browser/download/download_util.h"
+#include "content/browser/download/download_stats.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
#include "content/common/resource_response.h"
#include "net/base/io_buffer.h"
@@ -32,8 +32,8 @@
tmp_buffer_length_(0),
ignore_on_read_complete_(in_complete),
request_closed_(false) {
- download_util::RecordDownloadCount(
- download_util::INITIATED_BY_NAVIGATION_COUNT);
+ download_stats::RecordDownloadCount(
+ download_stats::INITIATED_BY_NAVIGATION_COUNT);
// Pause the request.
host_->PauseRequest(render_process_host_id_, request_id_, true);
@@ -45,10 +45,6 @@
limiter->CanDownloadOnIOThread(
render_process_host_id_, render_view_id, request_id, this);
- BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(&download_util::NotifyDownloadInitiated,
- render_process_host_id_, render_view_id_));
}
DownloadThrottlingResourceHandler::~DownloadThrottlingResourceHandler() {
« no previous file with comments | « no previous file | chrome/browser/download/download_util.h » ('j') | content/browser/download/download_stats.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698