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

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: comments 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 3e659775da6489d206e5e962574bd9b01b4f6338..afc3b3bbeee60e15be428fcfaf529b2fb334eb3f 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"
@@ -1772,6 +1773,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));
@@ -1779,6 +1783,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::kSafeBrowsingSubresourceFilterContentSetting));
if (PluginUtils::ShouldPreferHtmlOverPlugins(
HostContentSettingsMapFactory::GetForProfile(profile))) {

Powered by Google App Engine
This is Rietveld 408576698