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

Unified Diff: chrome/browser/ui/page_info/page_info.cc

Issue 2682293002: Add desktop UI for the subresource filter content setting. (Closed)
Patch Set: cs_ui Created 3 years, 9 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/browser/ui/page_info/page_info.cc
diff --git a/chrome/browser/ui/page_info/page_info.cc b/chrome/browser/ui/page_info/page_info.cc
index f5ea9df46c743f2b22b0d4269815113d239cee9b..0d5c53970a9e34c5b7c989ca774222a0a234287a 100644
--- a/chrome/browser/ui/page_info/page_info.cc
+++ b/chrome/browser/ui/page_info/page_info.cc
@@ -56,6 +56,7 @@
#include "components/ssl_errors/error_info.h"
#include "components/strings/grit/components_chromium_strings.h"
#include "components/strings/grit/components_strings.h"
+#include "components/subresource_filter/core/browser/subresource_filter_features.h"
#include "components/url_formatter/elide_url.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
@@ -109,6 +110,7 @@ ContentSettingsType kPermissionType[] = {
CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS,
CONTENT_SETTINGS_TYPE_AUTOPLAY,
CONTENT_SETTINGS_TYPE_MIDI_SYSEX,
+ CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER,
};
// Determines whether to show permission |type| in the Page Info UI. Only
@@ -120,6 +122,11 @@ bool ShouldShowPermission(ContentSettingsType type) {
return false;
#endif
+ if (type == CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER) {
+ return base::FeatureList::IsEnabled(
+ subresource_filter::kSafeBrowsingSubresourceFilterExperimentalUI);
+ }
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698