Add desktop UI for the subresource filter content setting.

Added option on chrome://settings/content to toggle subresource filter on a
global or per-site basis.

BUG=689487, 689992
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2682293002
Cr-Commit-Position: refs/heads/master@{#460402}
diff --git a/chrome/browser/ui/page_info/page_info.cc b/chrome/browser/ui/page_info/page_info.cc
index f5ea9df..0d5c5397 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 @@
     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 @@
     return false;
 #endif
 
+  if (type == CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER) {
+    return base::FeatureList::IsEnabled(
+        subresource_filter::kSafeBrowsingSubresourceFilterExperimentalUI);
+  }
+
   return true;
 }