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

Unified Diff: content/browser/download/download_stats.cc

Issue 138613003: A misplaced break statement is screwing up Download.DangerousFile.Discard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_stats.cc
diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
index b6e3ba84869a8d1496da7e60570c07da9ca0e611..6cfc178e739981ab072e2c02e70224afbd5d0f67 100644
--- a/content/browser/download/download_stats.cc
+++ b/content/browser/download/download_stats.cc
@@ -311,11 +311,11 @@ void RecordDangerousDownloadDiscard(DownloadDiscardReason reason,
case DOWNLOAD_DISCARD_DUE_TO_SHUTDOWN:
UMA_HISTOGRAM_ENUMERATION(
"Download.Discard", danger_type, DOWNLOAD_DANGER_TYPE_MAX);
- break;
if (danger_type == DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE) {
UMA_HISTOGRAM_SPARSE_SLOWLY("Download.DangerousFile.Discard",
GetDangerousFileType(file_path));
}
+ break;
default:
NOTREACHED();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698