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

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

Issue 1929693003: Populate download_file_types proto and filter it for each platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@file_type_polices2
Patch Set: reorder ascipb per asanka's comments 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 381ae51dd8d8414d643fece2889cc9f8990b908f..d6b35ce4510dcb83c6cc6e493721efd7a03b5e65 100644
--- a/chrome/common/safe_browsing/download_protection_util.cc
+++ b/chrome/common/safe_browsing/download_protection_util.cc
@@ -282,10 +282,15 @@ enum SBClientDownloadExtensions {
EXTENSION_NDIF,
EXTENSION_UDIF,
EXTENSION_TOAST,
+
// New values go above this one.
EXTENSION_MAX
};
+static_assert(EXTENSION_TOAST + 1 == EXTENSION_MAX,
+ "You must add new types to download_file_types.asciipb as "
+ "well.");
+
struct SafeBrowsingFiletype {
const base::FilePath::CharType* const extension;
int uma_value;
« no previous file with comments | « chrome/common/safe_browsing/download_file_types.proto ('k') | chrome/common/safe_browsing/file_type_policies.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698