From 8bd9e5623c17e845acbc182772b63f818f1d0bd5 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 16 Aug 2011 23:55:46 +0000 Subject: Move download UMA functions to their own file in content. Also fire the chrome-only notification for download initiated in chrome code from the chrome delegate. BUG=82782 Review URL: http://codereview.chromium.org/7664019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97059 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/tab_contents/tab_contents.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content/browser/tab_contents') diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc index 5db2590..4f08d74 100644 --- a/content/browser/tab_contents/tab_contents.cc +++ b/content/browser/tab_contents/tab_contents.cc @@ -13,12 +13,12 @@ #include "base/string_util.h" #include "base/time.h" #include "base/utf_string_conversions.h" -#include "chrome/browser/download/download_util.h" #include "content/browser/browser_context.h" #include "content/browser/child_process_security_policy.h" #include "content/browser/content_browser_client.h" #include "content/browser/debugger/devtools_manager.h" #include "content/browser/download/download_manager.h" +#include "content/browser/download/download_stats.h" #include "content/browser/host_zoom_map.h" #include "content/browser/in_process_webkit/session_storage_namespace.h" #include "content/browser/load_from_memory_cache_details.h" @@ -760,8 +760,8 @@ void TabContents::OnSavePage() { const GURL& current_page_url = GetURL(); if (dlm && current_page_url.is_valid()) { dlm->DownloadUrl(current_page_url, GURL(), "", this); - download_util::RecordDownloadCount( - download_util::INITIATED_BY_SAVE_PACKAGE_FAILURE_COUNT); + download_stats::RecordDownloadCount( + download_stats::INITIATED_BY_SAVE_PACKAGE_FAILURE_COUNT); return; } } -- cgit v1.1