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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.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/webui/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index 22a3b5120383e83b0a383f054358c5ecb19e8340..55edb77fb3d6591937b48a18c3e5f8d2fd4d1391 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -29,6 +29,7 @@
#include "components/password_manager/core/browser/password_manager_constants.h"
#include "components/safe_browsing_db/safe_browsing_prefs.h"
#include "components/strings/grit/components_strings.h"
+#include "components/subresource_filter/core/browser/subresource_filter_features.h"
#include "content/public/browser/web_ui_data_source.h"
#include "ui/base/l10n/l10n_util.h"
@@ -1798,6 +1799,9 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source,
{"embeddedIncognitoSite", IDS_SETTINGS_SITE_SETTINGS_INCOGNITO_EMBEDDED},
{"siteSettingsSiteDetails", IDS_SETTINGS_SITE_DETAILS},
{"noSitesAdded", IDS_SETTINGS_SITE_NO_SITES_ADDED},
+ {"siteSettingsSubresourceFilter", IDS_SUBRESOURCE_FILTER_HEADER},
+ {"siteSettingsSubresourceFilterAllow", IDS_SUBRESOURCE_FILTER_ALLOW_RADIO},
+ {"siteSettingsSubresourceFilterBlock", IDS_SUBRESOURCE_FILTER_BLOCK_RADIO},
};
AddLocalizedStringsBulk(html_source, localized_strings,
arraysize(localized_strings));
@@ -1805,6 +1809,10 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source,
html_source->AddBoolean("enableSiteSettings",
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableSiteSettings));
+ html_source->AddBoolean(
+ "enableSafeBrowsingSubresourceFilter",
+ base::FeatureList::IsEnabled(
+ subresource_filter::kSafeBrowsingSubresourceFilterExperimentalUI));
if (PluginUtils::ShouldPreferHtmlOverPlugins(
HostContentSettingsMapFactory::GetForProfile(profile))) {

Powered by Google App Engine
This is Rietveld 408576698