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

Unified Diff: chrome/common/safe_browsing/download_protection_util.cc

Issue 2010333004: Make file type MPKG generate a download ping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix a SBClientDownload histogram type Created 4 years, 7 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
Index: chrome/common/safe_browsing/download_protection_util.cc
diff --git a/chrome/common/safe_browsing/download_protection_util.cc b/chrome/common/safe_browsing/download_protection_util.cc
index 25bb01bd6ad0d37ab70ad9095cefb2b4bcb10403..ba8a3afc5ca65d77dc83cf522a50f5a4f310733a 100644
--- a/chrome/common/safe_browsing/download_protection_util.cc
+++ b/chrome/common/safe_browsing/download_protection_util.cc
@@ -34,6 +34,7 @@ ClientDownloadRequest::DownloadType GetDownloadType(
file.MatchesExtension(FILE_PATH_LITERAL(".img")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".iso")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".pkg")) ||
+ file.MatchesExtension(FILE_PATH_LITERAL(".mpkg")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".smi")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".osx")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".app")) ||
« no previous file with comments | « chrome/browser/resources/safe_browsing/download_file_types.asciipb ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698