diff options
Diffstat (limited to 'chrome/browser/download/download_util.cc')
-rw-r--r-- | chrome/browser/download/download_util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc index e85c0ce..74400ec 100644 --- a/chrome/browser/download/download_util.cc +++ b/chrome/browser/download/download_util.cc @@ -15,6 +15,7 @@ #include "base/i18n/rtl.h" #include "base/i18n/time_formatting.h" #include "base/lazy_instance.h" +#include "base/metrics/histogram.h" #include "base/path_service.h" #include "base/string16.h" #include "base/string_number_conversions.h" @@ -343,6 +344,11 @@ void OpenChromeExtension(Profile* profile, installer->set_allow_silent_install(is_gallery_download); } +void RecordDownloadCount(DownloadCountTypes type) { + UMA_HISTOGRAM_ENUMERATION( + "Download.Counts", type, DOWNLOAD_COUNT_TYPES_LAST_ENTRY); +} + // Download progress painting -------------------------------------------------- // Common bitmaps used for download progress animations. We load them once the |