| Index: content/browser/download/download_stats.cc
|
| diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
|
| index 87fbe199defcee2e36592a7e527d14245328ec72..8de0b2c5b1e194a4b4cbe85fcc5e1275c9c07921 100644
|
| --- a/content/browser/download/download_stats.cc
|
| +++ b/content/browser/download/download_stats.cc
|
| @@ -578,14 +578,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.
|
| @@ -615,9 +613,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);
|
| }
|
|
|
|
|