| Index: content/browser/download/download_stats.cc
|
| diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
|
| index 0bfb00271b99a6cbb6acbab0414b2799a665f378..3dff56ced7bf5233cc5d3145ac07814b8c390cc1 100644
|
| --- a/content/browser/download/download_stats.cc
|
| +++ b/content/browser/download/download_stats.cc
|
| @@ -594,14 +594,12 @@ void RecordDownloadImageType(const std::string& mime_type_string) {
|
| }
|
| }
|
|
|
| - UMA_HISTOGRAM_ENUMERATION("Download.ContentImageType",
|
| - download_image,
|
| + UMA_HISTOGRAM_ENUMERATION("Download.ContentImageType", download_image,
|
| DOWNLOAD_IMAGE_MAX);
|
| }
|
|
|
| -} // namespace
|
| -
|
| -void RecordDownloadMimeType(const std::string& mime_type_string) {
|
| +DownloadContent DownloadContentFromMimeType(
|
| + const std::string& mime_type_string) {
|
| DownloadContent download_content = DOWNLOAD_CONTENT_UNRECOGNIZED;
|
|
|
| // Look up exact matches.
|
| @@ -631,9 +629,21 @@ void RecordDownloadMimeType(const std::string& mime_type_string) {
|
| }
|
| }
|
|
|
| - // Record the value.
|
| + return download_content;
|
| +}
|
| +
|
| +} // namespace
|
| +
|
| +void RecordDownloadMimeType(const std::string& mime_type_string) {
|
| UMA_HISTOGRAM_ENUMERATION("Download.ContentType",
|
| - download_content,
|
| + DownloadContentFromMimeType(mime_type_string),
|
| + DOWNLOAD_CONTENT_MAX);
|
| +}
|
| +
|
| +void RecordDownloadMimeTypeForNormalProfile(
|
| + const std::string& mime_type_string) {
|
| + UMA_HISTOGRAM_ENUMERATION("Download.ContentType.NormalProfile",
|
| + DownloadContentFromMimeType(mime_type_string),
|
| DOWNLOAD_CONTENT_MAX);
|
| }
|
|
|
|
|